11 references to ERR_PatternNullableType
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Patterns.cs (2)
734Error(diagnostics, ErrorCode.ERR_PatternNullableType, typeSyntax, patternType.GetNullableUnderlyingType()); 739Error(diagnostics, ErrorCode.ERR_PatternNullableType, typeSyntax, patternType);
Errors\ErrorFacts.cs (1)
1679case ErrorCode.ERR_PatternNullableType:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (6)
Semantics\PatternMatchingTests.cs (2)
145Diagnostic(ErrorCode.ERR_PatternNullableType, "Nullable<int>").WithArguments("int").WithLocation(11, 18) 219Diagnostic(ErrorCode.ERR_PatternNullableType, "NullableInt").WithArguments("int").WithLocation(11, 18),
Semantics\PatternMatchingTests2.cs (4)
2708Diagnostic(ErrorCode.ERR_PatternNullableType, "string?").WithArguments("string").WithLocation(4, 22), 2711Diagnostic(ErrorCode.ERR_PatternNullableType, "string?").WithArguments("string").WithLocation(7, 23), 3045Diagnostic(ErrorCode.ERR_PatternNullableType, "int?").WithArguments("int").WithLocation(6, 25), 3048Diagnostic(ErrorCode.ERR_PatternNullableType, "int?").WithArguments("int").WithLocation(7, 24)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableTests.cs (2)
2182Diagnostic(ErrorCode.ERR_PatternNullableType, "A").WithArguments("int").WithLocation(7, 18)); 2204Diagnostic(ErrorCode.ERR_PatternNullableType, "A").WithArguments("int").WithLocation(7, 18));