25 references to ERR_CannotBeMadeNullable
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
11463
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_CannotBeMadeNullable
, access.Display);
Errors\ErrorFacts.cs (1)
2230
or ErrorCode.
ERR_CannotBeMadeNullable
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenShortCircuitOperatorTests.cs (8)
5492
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(15, 34),
5495
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(18, 42),
5498
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(20, 45)
5621
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("void*").WithLocation(16, 41),
5624
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("void*").WithLocation(19, 39),
5627
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("void*").WithLocation(21, 42)
5758
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M()").WithArguments("T").WithLocation(15, 18)
7551
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".SomeInfo()").WithArguments("TValue").WithLocation(15, 26)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
RefStructInterfacesTests.cs (2)
23974
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M1()").WithArguments("T").WithLocation(7, 20),
23977
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M2()").WithArguments("S").WithLocation(17, 20)
Symbols\UserDefinedCompoundAssignmentOperatorsTests.cs (1)
20183
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, "._F += 2").WithArguments("T").WithLocation(16, 24)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Semantics\FunctionPointerTests.cs (2)
3169
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".GetPtr()").WithArguments("delegate*<void>").WithLocation(8, 17),
3172
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".GetPtr()").WithArguments("delegate*<void>").WithLocation(9, 12)
Semantics\NullableReferenceTypesTests.cs (1)
82660
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Invoke()").WithArguments("T").WithLocation(6, 18)
Semantics\NullConditionalAssignmentTests.cs (1)
1853
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".t = default").WithArguments("T").WithLocation(7, 19));
Semantics\RefEscapingTests.cs (2)
7640
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Test()").WithArguments("S").WithLocation(8, 23),
7643
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Test()").WithArguments("S").WithLocation(10, 27)
Semantics\SemanticErrorTests.cs (6)
24237
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToString").WithArguments("method group").WithLocation(14, 24));
24263
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToString").WithArguments("method group").WithLocation(14, 24)
24360
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToPointer()").WithArguments("void*").WithLocation(9, 24)
24760
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F()").WithArguments("S2").WithLocation(10, 19),
24763
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F()").WithArguments("S2").WithLocation(12, 19),
24766
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F().field").WithArguments("S1").WithLocation(14, 19)