41 references to ERR_LambdaInIsAs
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Operators.cs (2)
4624Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 5172Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node);
Errors\ErrorFacts.cs (1)
1124or ErrorCode.ERR_LambdaInIsAs
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenConversionTests.cs (1)
753Diagnostic(ErrorCode.ERR_LambdaInIsAs, "ICloneable.Clone is object").WithLocation(8, 17));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (7)
Semantics\PatternMatchingTests.cs (7)
3547Diagnostic(ErrorCode.ERR_LambdaInIsAs, "M is T").WithLocation(8, 17) 3570Diagnostic(ErrorCode.ERR_LambdaInIsAs, "o.Equals is()").WithLocation(7, 17), 3573Diagnostic(ErrorCode.ERR_LambdaInIsAs, "object.Equals is()").WithLocation(8, 17) 3647Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is 2").WithLocation(7, 13), 3650Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is 3").WithLocation(8, 13), 3662Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Main is var x2").WithLocation(11, 13), 3665Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate {} is var x3").WithLocation(12, 13),
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (21)
Semantics\ColorColorTests.cs (1)
633Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Color/*</bind>*/.M is object").WithLocation(13, 44));
Semantics\NullableReferenceTypesTests.cs (4)
3636Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => {}!) is null").WithLocation(6, 13), 3639Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(M!) is null").WithLocation(7, 13), 3651Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => {}!) as object").WithLocation(12, 13), 3654Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(M!) as object").WithLocation(13, 13),
Semantics\SemanticErrorTests.cs (16)
2177Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F as D").WithLocation(6, 10), 2180Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F as D").WithLocation(7, 10), 2183Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G as D").WithLocation(8, 10)); 7075Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is Action").WithLocation(10, 18), 7082Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is Action").WithLocation(10, 18)); 7109Diagnostic(ErrorCode.ERR_LambdaInIsAs, "this.F is Action").WithLocation(10, 18), 7117Diagnostic(ErrorCode.ERR_LambdaInIsAs, "this.F is Action").WithLocation(10, 18)); 12835Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => { }) is Del").WithLocation(10, 23), 12838Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } is Del").WithLocation(11, 23), 12844Diagnostic(ErrorCode.ERR_LambdaInIsAs, "() => { } as Del").WithLocation(12, 22), 12850Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } as Del").WithLocation(13, 22), 12858Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => { }) is Del").WithLocation(10, 23), 12861Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } is Del").WithLocation(11, 23), 12867Diagnostic(ErrorCode.ERR_LambdaInIsAs, "() => { } as Del").WithLocation(12, 22), 12873Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } as Del").WithLocation(13, 22), 17778Diagnostic(ErrorCode.ERR_LambdaInIsAs, "num.GetType is int").WithLocation(10, 21));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\ExtensionMethodTests.cs (9)
434Diagnostic(ErrorCode.ERR_LambdaInIsAs, "s.Goo is Action").WithLocation(9, 18), 1530Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is D").WithLocation(10, 13), 1533Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F as D").WithLocation(12, 14), 1536Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F is D").WithLocation(14, 13), 1539Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F as D").WithLocation(16, 14), 1542Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G is D").WithLocation(18, 13), 1545Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G as D").WithLocation(20, 14), 1548Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.E is D").WithLocation(22, 13), 1551Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.E as D").WithLocation(24, 14));