11 references to ERR_AsNullableType
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
5163Error(diagnostics, ErrorCode.ERR_AsNullableType, node.Right, targetType);
Errors\ErrorFacts.cs (1)
1992or ErrorCode.ERR_AsNullableType
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Semantics\PatternMatchingTests4.cs (1)
3814Diagnostic(ErrorCode.ERR_AsNullableType, "A[][]?").WithArguments("A[][]").WithLocation(16, 18)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\NullableReferenceTypesTests.cs (8)
7544Diagnostic(ErrorCode.ERR_AsNullableType, "string ?").WithArguments("string").WithLocation(9, 18), 7562Diagnostic(ErrorCode.ERR_AsNullableType, "object[] ?").WithArguments("object[]").WithLocation(17, 18), 7587Diagnostic(ErrorCode.ERR_AsNullableType, "string ?").WithArguments("string").WithLocation(9, 18), 7596Diagnostic(ErrorCode.ERR_AsNullableType, "object[] ?").WithArguments("object[]").WithLocation(17, 18) 79007Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").WithLocation(16, 30), 79058Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").WithLocation(15, 18), 79122Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").WithLocation(16, 19), 79201Diagnostic(ErrorCode.ERR_AsNullableType, "string?").WithArguments("string").WithLocation(14, 35),