You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Conversions fail (but are expected to succeed) when they involve:
narrowing as "in" conversion (such as int to byte, or a narrowing tuple conversion (int, object) to (int, string))
user-defined conversion
widening conversion (such as widening nullable conversion
This issue exists in Roslyn and the native compiler.
StructureCSharedSubMain()'Dim x As C = (1, Nothing)'Dim y As C? = (2, Nothing)DimaAsInteger=1DimbAsInteger?=1Dimx1AsC=aDimy1AsC?=aDimz1AsC?=bEndSub'Public Shared Widening Operator CType(ByVal d As (Integer, String)) As C' Return New C()'End OperatorPublicSharedWideningOperatorCType(ByValdAsByte)AsCReturnNewC()EndOperatorEndStructure
Conversions fail (but are expected to succeed) when they involve:
int
tobyte
, or a narrowing tuple conversion(int, object)
to(int, string)
)This issue exists in Roslyn and the native compiler.
The issue was discovered in testing this PR: #18416 (comment)
The text was updated successfully, but these errors were encountered: