9 references to ERR_AmbigQM
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
5736
ErrorCode noCommonTypeError = hadMultipleCandidates ? ErrorCode.
ERR_AmbigQM
: ErrorCode.ERR_InvalidQM;
Errors\ErrorFacts.cs (1)
755
or ErrorCode.
ERR_AmbigQM
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\InterpolationTests.cs (1)
6102
Diagnostic(ErrorCode.
ERR_AmbigQM
, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("CustomHandler", "string").WithLocation(4, 9)
Semantics\NativeIntegerTests.cs (4)
14267
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? x : y").WithArguments($"{nativeIntegerType}", $"{underlyingType}").WithLocation(12, 10),
14270
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? y : x").WithArguments($"{underlyingType}", $"{nativeIntegerType}").WithLocation(13, 10),
14313
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? x : y").WithArguments($"{nativeIntegerType}[]", $"{underlyingType}[]").WithLocation(9, 13),
14322
Diagnostic(ErrorCode.
ERR_AmbigQM
, "b ? x : y").WithArguments($"I<{nativeIntegerType}>", $"I<{underlyingType}>").WithLocation(15, 13),
Semantics\RawInterpolationTests_Handler.cs (1)
4353
Diagnostic(ErrorCode.
ERR_AmbigQM
, @"(bool)(object)false ? default(CustomHandler) : " + expression).WithArguments("CustomHandler", "string").WithLocation(4, 9));
Semantics\SemanticErrorTests.cs (1)
6545
Diagnostic(ErrorCode.
ERR_AmbigQM
, "(1 == 1) ? aa : ii").WithArguments("Square.Circle", "Square").WithLocation(21, 16),