25 references to ERR_CannotBeMadeNullable
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
11441
DiagnosticInfo diagnosticInfo = new CSDiagnosticInfo(ErrorCode.
ERR_CannotBeMadeNullable
, access.Display);
Errors\ErrorFacts.cs (1)
2232
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)
7552
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".SomeInfo()").WithArguments("TValue").WithLocation(15, 26)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
RefStructInterfacesTests.cs (2)
23578
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".M1()").WithArguments("T").WithLocation(7, 20),
23581
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)
82638
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)
7059
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Test()").WithArguments("S").WithLocation(8, 23),
7062
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".Test()").WithArguments("S").WithLocation(10, 27)
Semantics\SemanticErrorTests.cs (6)
24192
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToString").WithArguments("method group").WithLocation(14, 24));
24218
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToString").WithArguments("method group").WithLocation(14, 24)
24315
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".ToPointer()").WithArguments("void*").WithLocation(9, 24)
24715
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F()").WithArguments("S2").WithLocation(10, 19),
24718
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F()").WithArguments("S2").WithLocation(12, 19),
24721
Diagnostic(ErrorCode.
ERR_CannotBeMadeNullable
, ".F().field").WithArguments("S1").WithLocation(14, 19)