projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mcs] C#7 out variable declaration
[mono.git]
/
mcs
/
tests
/
test-primary-ctor-03.cs
diff --git
a/mcs/tests/test-primary-ctor-03.cs
b/mcs/tests/test-primary-ctor-03.cs
index d6e472e4d4e0874d72c28035bd4ea9de275b0267..36df2c3ad406cb2cd2af9639d32a96486c64666b 100644
(file)
--- a/
mcs/tests/test-primary-ctor-03.cs
+++ b/
mcs/tests/test-primary-ctor-03.cs
@@
-1,10
+1,11
@@
+// Compiler options: -langversion:experimental
class D(string arg) : Base (arg)
{
}
abstract class Base (object obj)
{
- public string Prop { get
{ return obj.ToString (); } }
+ public string Prop { get
; } = obj.ToString ();
}
class X