mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
C#: Update test example (field is now a reserved word).
This commit is contained in:
@@ -11,13 +11,13 @@ class Literals
|
||||
|
||||
class ExpressionBodiedMembers
|
||||
{
|
||||
int field = 0;
|
||||
int Foo() => field;
|
||||
int @field = 0;
|
||||
int Foo() => @field;
|
||||
int P => 5;
|
||||
int Q
|
||||
{
|
||||
get => Foo();
|
||||
set => field = value;
|
||||
set => @field = value;
|
||||
}
|
||||
ExpressionBodiedMembers() : this(1) { }
|
||||
ExpressionBodiedMembers(int x) => Foo();
|
||||
|
||||
Reference in New Issue
Block a user