mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
C#: Example record type with autogenerated Deconstruct method.
This commit is contained in:
@@ -61,4 +61,8 @@ class LocalScopeVariableShadowsMember
|
||||
{
|
||||
public C4(int f) { } // GOOD
|
||||
}
|
||||
|
||||
record class GoodRecordClass(object Prop1, object Prop2) { } // GOOD
|
||||
|
||||
record struct GoodRecordStruct(object Prop1, object Prop2) { } // GOOD
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user