9 references to ERR_AmbigQM
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
4232
ErrorCode noCommonTypeError = hadMultipleCandidates ? ErrorCode.
ERR_AmbigQM
: ErrorCode.ERR_InvalidQM;
Errors\ErrorFacts.cs (1)
694
case ErrorCode.
ERR_AmbigQM
:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\InterpolationTests.cs (1)
6065
Diagnostic(ErrorCode.
ERR_AmbigQM
, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("CustomHandler", "string").WithLocation(4, 9)
Semantics\NativeIntegerTests.cs (4)
14236
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? x : y").WithArguments($"{nativeIntegerType}", $"{underlyingType}").WithLocation(12, 10),
14239
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? y : x").WithArguments($"{underlyingType}", $"{nativeIntegerType}").WithLocation(13, 10),
14282
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? x : y").WithArguments($"{nativeIntegerType}[]", $"{underlyingType}[]").WithLocation(9, 13),
14291
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? x : y").WithArguments($"I<{nativeIntegerType}>", $"I<{underlyingType}>").WithLocation(15, 13),
Semantics\RawInterpolationTests_Handler.cs (1)
4346
Diagnostic(ErrorCode.
ERR_AmbigQM
, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("CustomHandler", "string").WithLocation(4, 9));
Semantics\SemanticErrorTests.cs (1)
6547
Diagnostic(ErrorCode.
ERR_AmbigQM
, "(1 == 1) ? aa : ii").WithArguments("Square.Circle", "Square").WithLocation(21, 16),