mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
C#: Use ref conversions (including variance conversions) for element types of span conversions.
This commit is contained in:
@@ -533,9 +533,7 @@ predicate convSpan(Type fromType, Type toType) {
|
||||
) and
|
||||
toElementType = toType.(ReadOnlySpanType).getElementType()
|
||||
|
|
||||
convIdentity(fromElementType, toElementType)
|
||||
or
|
||||
convVariance(fromElementType, toElementType)
|
||||
convRefTypeNonNull(fromElementType, toElementType)
|
||||
)
|
||||
or
|
||||
fromType instanceof SystemStringClass and
|
||||
|
||||
Reference in New Issue
Block a user