projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #1410 from alesliehughes/master
[mono.git]
/
mcs
/
tests
/
test-primary-ctor-03.cs
1
// Compiler options: -langversion:experimental
2
class D(string arg) : Base (arg)
3
{
4
}
5
6
abstract class Base (object obj)
7
{
8
public string Prop { get; } = obj.ToString ();
9
}
10
11
class X
12
{
13
public static int Main ()
14
{
15
var d = new D ("test");
16
if (d.Prop != "test")
17
return 1;
18
19
return 0;
20
}
21
}