Skip to content

Commit 2eea6ca

Browse files
committed
C#: Example record type with autogenerated Deconstruct method.
1 parent 55f787b commit 2eea6ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

csharp/ql/test/query-tests/Bad Practices/Declarations/LocalScopeVariableShadowsMember/LocalScopeVariableShadowsMember.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,8 @@ class C4 : C
6161
{
6262
public C4(int f) { } // GOOD
6363
}
64+
65+
record class GoodRecordClass(object Prop1, object Prop2) { } // GOOD
66+
67+
record struct GoodRecordStruct(object Prop1, object Prop2) { } // GOOD
6468
}

0 commit comments

Comments
 (0)