mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
C#: Add ref struct boxing example (false positive).
This commit is contained in:
@@ -45,3 +45,6 @@ class C<T1, T2, T3, T4, T5, T6>
|
||||
x1 = x15; // not a boxing conversion
|
||||
}
|
||||
}
|
||||
|
||||
// Ref structs can't be converted to a dynamic, object or valuetype.
|
||||
ref struct S { }
|
||||
|
||||
@@ -117,6 +117,9 @@
|
||||
| Nullable<Int32> | Object |
|
||||
| Nullable<Int32> | ValueType |
|
||||
| Nullable<Int32> | dynamic |
|
||||
| S | Object |
|
||||
| S | ValueType |
|
||||
| S | dynamic |
|
||||
| T1 | Object |
|
||||
| T1 | dynamic |
|
||||
| T3 | Object |
|
||||
|
||||
Reference in New Issue
Block a user