21 references to ERR_CannotBeMadeNullable
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
9435
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_CannotBeMadeNullable
, access.Display);
Errors\ErrorFacts.cs (1)
2175
case ErrorCode.
ERR_CannotBeMadeNullable
:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenShortCircuitOperatorTests.cs (8)
5505
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(15, 34),
5508
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(18, 42),
5511
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(20, 45)
5634
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("void*").WithLocation(16, 41),
5637
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("void*").WithLocation(19, 39),
5640
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("void*").WithLocation(21, 42)
5771
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(15, 18)
7565
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".SomeInfo()").WithArguments("TValue").WithLocation(15, 26)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\FunctionPointerTests.cs (2)
3148
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".GetPtr()").WithArguments("delegate*<void>").WithLocation(8, 17),
3151
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".GetPtr()").WithArguments("delegate*<void>").WithLocation(9, 12)
Semantics\NullableReferenceTypesTests.cs (1)
78949
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Invoke()").WithArguments("T").WithLocation(6, 18)
Semantics\RefEscapingTests.cs (2)
5079
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Test()").WithArguments("S").WithLocation(8, 23),
5082
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Test()").WithArguments("S").WithLocation(10, 27)
Semantics\SemanticErrorTests.cs (6)
23936
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToString").WithArguments("method group").WithLocation(14, 24));
23962
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToString").WithArguments("method group").WithLocation(14, 24)
24059
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToPointer()").WithArguments("void*").WithLocation(9, 24)
24459
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F()").WithArguments("S2").WithLocation(10, 19),
24462
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F()").WithArguments("S2").WithLocation(12, 19),
24465
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F().field").WithArguments("S1").WithLocation(14, 19)