-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathA.cs
More file actions
38 lines (34 loc) · 777 Bytes
/
A.cs
File metadata and controls
38 lines (34 loc) · 777 Bytes
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
// semmle-extractor-options: --separate-compilation /out:test.dll
// Stub implementation
class C1
{
public int P1 => throw null;
public int P2 { get { throw null; } set { throw null; } }
public int M() => throw null;
}
class C2
{
public int F = 0;
public int this[int i] => i;
public string this[string s] { get { return s; } set { } }
public void M1(int i = 0)
{
int M2() => 0;
}
public C2(int i) { F = i; }
public C2() : this(0) { }
~C2() { }
public static implicit operator C2(int i) => null;
public int P { get; set; } = 0;
}
// Stub implementation
class C3
{
public int P3 { get => throw null; }
}
// Stub implementation
partial class C4
{
int M1() { throw null; }
int M2() { throw null; }
}