blob: 982b42c9c5fbdea9f31bc19edcf5809d1b23fe62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
using System;
// Tests for explicit call sequence point
struct S
{
public S (int i)
{
}
public static implicit operator int (S s)
{
return 1;
}
}
class C
{
public static int A ()
{
return 1;
}
public static int B (C c)
{
return 2;
}
public static C Test ()
{
return new C ();
}
public string Foo ()
{
return null;
}
void Test_1 ()
{
Func<int> f = A;
var res = f () + f ();
}
void Test_2 ()
{
var s = new S (0);
}
void Test_3 ()
{
int i = new S () + new S ();
}
void Test_4 ()
{
Test ().Foo ();
}
static int Main ()
{
return 0;
}
}
|