mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +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
|
class ExpressionBodiedMembers
|
||||||
{
|
{
|
||||||
int field = 0;
|
int @field = 0;
|
||||||
int Foo() => field;
|
int Foo() => @field;
|
||||||
int P => 5;
|
int P => 5;
|
||||||
int Q
|
int Q
|
||||||
{
|
{
|
||||||
get => Foo();
|
get => Foo();
|
||||||
set => field = value;
|
set => @field = value;
|
||||||
}
|
}
|
||||||
ExpressionBodiedMembers() : this(1) { }
|
ExpressionBodiedMembers() : this(1) { }
|
||||||
ExpressionBodiedMembers(int x) => Foo();
|
ExpressionBodiedMembers(int x) => Foo();
|
||||||
|
|||||||
Reference in New Issue
Block a user