5 references to ERR_ExpressionTreeContainsDiscard
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1818or ErrorCode.ERR_ExpressionTreeContainsDiscard
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
542Error(ErrorCode.ERR_ExpressionTreeContainsDiscard, argument);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\SemanticErrorTests.cs (3)
24619Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDiscard, "int _").WithLocation(30, 59), 24622Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDiscard, "var _").WithLocation(31, 59), 24634Diagnostic(ErrorCode.ERR_ExpressionTreeContainsDiscard, "_").WithLocation(36, 60)