mirror of https://github.com/icsharpcode/ILSpy.git
5 changed files with 49 additions and 3 deletions
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
internal class Issue3406 |
||||
{ |
||||
private record struct S1(int Value); |
||||
|
||||
private record struct S2 |
||||
{ |
||||
public int Value; |
||||
|
||||
public S2(int value) |
||||
{ |
||||
Value = value; |
||||
} |
||||
|
||||
public S2(int a, int b) |
||||
{ |
||||
Value = a + b; |
||||
} |
||||
} |
||||
|
||||
private record struct S3 |
||||
{ |
||||
public int Value; |
||||
|
||||
public S3(int value) |
||||
{ |
||||
Value = value; |
||||
} |
||||
} |
||||
|
||||
// This also generates a hidden backing field
|
||||
private record struct S4(int value) |
||||
{ |
||||
public int Value = value; |
||||
} |
||||
} |
Loading…
Reference in new issue