projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Remove backing field from primary constructors
[mono.git]
/
mcs
/
tests
/
test-primary-ctor-08.cs
1
struct S (int arg)
2
{
3
{
4
v = arg;
5
}
6
7
public readonly int v;
8
}
9
10
class C (int arg)
11
{
12
{
13
v = arg;
14
}
15
16
public readonly int v;
17
}
18
19
class Test
20
{
21
public static int Main ()
22
{
23
if (new C (4).v != 4)
24
return 1;
25
26
if (new S (3).v != 3)
27
return 2;
28
29
return 0;
30
}
31
}