42 references to ERR_LambdaInIsAs
Microsoft.CodeAnalysis.CSharp (3)
Binder\Binder_Operators.cs (2)
3122Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node); 3641Error(diagnostics, ErrorCode.ERR_LambdaInIsAs, node);
Errors\ErrorFacts.cs (1)
1062case 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.Emit2.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)
632Diagnostic(ErrorCode.ERR_LambdaInIsAs, "Color/*</bind>*/.M is object").WithLocation(13, 44));
Semantics\NullableReferenceTypesTests.cs (4)
3624Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => {}!) is null").WithLocation(6, 13), 3627Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(M!) is null").WithLocation(7, 13), 3639Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => {}!) as object").WithLocation(12, 13), 3642Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(M!) as object").WithLocation(13, 13),
Semantics\SemanticErrorTests.cs (16)
2179Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F as D").WithLocation(6, 10), 2182Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F as D").WithLocation(7, 10), 2185Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G as D").WithLocation(8, 10)); 7032Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is Action").WithLocation(10, 18), 7039Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is Action").WithLocation(10, 18)); 7066Diagnostic(ErrorCode.ERR_LambdaInIsAs, "this.F is Action").WithLocation(10, 18), 7074Diagnostic(ErrorCode.ERR_LambdaInIsAs, "this.F is Action").WithLocation(10, 18)); 12740Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => { }) is Del").WithLocation(10, 23), 12743Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } is Del").WithLocation(11, 23), 12749Diagnostic(ErrorCode.ERR_LambdaInIsAs, "() => { } as Del").WithLocation(12, 22), 12755Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } as Del").WithLocation(13, 22), 12763Diagnostic(ErrorCode.ERR_LambdaInIsAs, "(() => { }) is Del").WithLocation(10, 23), 12766Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } is Del").WithLocation(11, 23), 12772Diagnostic(ErrorCode.ERR_LambdaInIsAs, "() => { } as Del").WithLocation(12, 22), 12778Diagnostic(ErrorCode.ERR_LambdaInIsAs, "delegate() { } as Del").WithLocation(13, 22), 17626Diagnostic(ErrorCode.ERR_LambdaInIsAs, "num.GetType is int").WithLocation(10, 21));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Symbols\ExtensionMethodTests.cs (10)
436Diagnostic(ErrorCode.ERR_LambdaInIsAs, "s.Goo is Action").WithLocation(9, 18), 439Diagnostic(ErrorCode.ERR_LambdaInIsAs, "i.Goo is Action").WithLocation(12, 18), 1534Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F is D").WithLocation(10, 13), 1537Diagnostic(ErrorCode.ERR_LambdaInIsAs, "F as D").WithLocation(12, 14), 1540Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F is D").WithLocation(14, 13), 1543Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.F as D").WithLocation(16, 14), 1546Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G is D").WithLocation(18, 13), 1549Diagnostic(ErrorCode.ERR_LambdaInIsAs, "G as D").WithLocation(20, 14), 1552Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.E is D").WithLocation(22, 13), 1555Diagnostic(ErrorCode.ERR_LambdaInIsAs, "c.E as D").WithLocation(24, 14));