Skip to content

Commit c2578fc

Browse files
committed
C#: Update test example (field is now a reserved word).
1 parent a49ae52 commit c2578fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

csharp/ql/test/library-tests/csharp7/CSharp7.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ class Literals
1111

1212
class ExpressionBodiedMembers
1313
{
14-
int field = 0;
15-
int Foo() => field;
14+
int @field = 0;
15+
int Foo() => @field;
1616
int P => 5;
1717
int Q
1818
{
1919
get => Foo();
20-
set => field = value;
20+
set => @field = value;
2121
}
2222
ExpressionBodiedMembers() : this(1) { }
2323
ExpressionBodiedMembers(int x) => Foo();

0 commit comments

Comments
 (0)