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