22 references to WRN_DotOnDefault
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
7947
Error(diagnostics, ErrorCode.
WRN_DotOnDefault
, node, boundLeft.Type);
Errors\ErrorFacts.cs (2)
371
case ErrorCode.
WRN_DotOnDefault
:
1364
or ErrorCode.
WRN_DotOnDefault
Generated\ErrorFacts.Generated.cs (1)
109
case ErrorCode.
WRN_DotOnDefault
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (18)
Semantics\SemanticAnalyzerTests.cs (2)
85
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(C).ToString").WithArguments("Program.C"),
88
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(C).ToString").WithArguments("Program.C"));
Semantics\SemanticErrorTests.cs (14)
22636
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(object).GetHashCode").WithArguments("object").WithLocation(20, 9),
22639
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T4).GetHashCode").WithArguments("T4").WithLocation(24, 9),
22642
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T6).GetHashCode").WithArguments("T6").WithLocation(26, 9),
22645
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T6).P").WithArguments("T6").WithLocation(28, 9));
22696
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(A)[0]").WithArguments("A").WithLocation(23, 13),
22698
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(I)[0]").WithArguments("I").WithLocation(25, 13),
22700
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(object[])[0]").WithArguments("object[]").WithLocation(26, 13),
22702
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T1)[0]").WithArguments("T1").WithLocation(27, 13),
22704
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T4)[0]").WithArguments("T4").WithLocation(30, 13),
22706
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(A)[1]").WithArguments("A").WithLocation(32, 9),
22708
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(I)[1]").WithArguments("I").WithLocation(33, 9),
22710
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(object[])[1]").WithArguments("object[]").WithLocation(34, 9),
22712
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T1)[1]").WithArguments("T1").WithLocation(35, 9),
22716
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T4)[1]").WithArguments("T4").WithLocation(38, 9));
Semantics\TargetTypedDefaultTests.cs (2)
1010
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(C).ToString").WithArguments("C").WithLocation(13, 9)
1041
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(C).ToString").WithArguments("C").WithLocation(13, 9));