22 references to WRN_DotOnDefault
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Expressions.cs (1)
6811
Error(diagnostics, ErrorCode.
WRN_DotOnDefault
, node, boundLeft.Type);
Errors\ErrorFacts.cs (2)
358
case ErrorCode.
WRN_DotOnDefault
:
1303
case 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)
22412
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(object).GetHashCode").WithArguments("object").WithLocation(20, 9),
22415
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T4).GetHashCode").WithArguments("T4").WithLocation(24, 9),
22418
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T6).GetHashCode").WithArguments("T6").WithLocation(26, 9),
22421
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T6).P").WithArguments("T6").WithLocation(28, 9));
22472
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(A)[0]").WithArguments("A").WithLocation(23, 13),
22474
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(I)[0]").WithArguments("I").WithLocation(25, 13),
22476
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(object[])[0]").WithArguments("object[]").WithLocation(26, 13),
22478
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T1)[0]").WithArguments("T1").WithLocation(27, 13),
22480
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T4)[0]").WithArguments("T4").WithLocation(30, 13),
22482
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(A)[1]").WithArguments("A").WithLocation(32, 9),
22484
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(I)[1]").WithArguments("I").WithLocation(33, 9),
22486
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(object[])[1]").WithArguments("object[]").WithLocation(34, 9),
22488
Diagnostic(ErrorCode.
WRN_DotOnDefault
, "default(T1)[1]").WithArguments("T1").WithLocation(35, 9),
22492
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));