13 references to ERR_BadNullableTypeof
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1352
diagnostics.Add(ErrorCode.
ERR_BadNullableTypeof
, node.Location);
Errors\ErrorFacts.cs (1)
1923
case ErrorCode.
ERR_BadNullableTypeof
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\NullableReferenceTypesTests.cs (11)
8552
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(object?)").WithLocation(6, 4),
8564
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(object?)").WithLocation(6, 4));
67774
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(C<int, object, int>?)").WithLocation(9, 13),
67780
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(TClass?)").WithLocation(11, 13),
135564
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(string?)").WithLocation(9, 17),
135567
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(K<int?>?)").WithLocation(12, 17),
135570
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(K<string?>?)").WithLocation(13, 17),
135573
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(string?)").WithLocation(21, 17),
135582
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(K<int?>?)").WithLocation(24, 17),
135588
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(K<string?>?)").WithLocation(25, 17),
135600
Diagnostic(ErrorCode.
ERR_BadNullableTypeof
, "typeof(TClass?)").WithLocation(33, 17));