33 references to ERR_UnionMatchingWrongPattern
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Patterns.cs (1)
1011
diagnostics.Add(ErrorCode.
ERR_UnionMatchingWrongPattern
, expression.Syntax.Location, unionType);
Errors\ErrorFacts.cs (1)
2586
or ErrorCode.
ERR_UnionMatchingWrongPattern
Microsoft.CodeAnalysis.CSharp.CSharp15.UnitTests (31)
UnionsTests.cs (31)
1279
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "(string)null").WithArguments("S1").WithLocation(100, 21),
1288
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "(string)null").WithArguments("C1").WithLocation(200, 21),
1297
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "(string)null").WithArguments("S1").WithLocation(300, 21),
1315
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "(object)null").WithArguments("S2").WithLocation(800, 21),
1466
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(17, 27),
1475
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(22, 21),
1484
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(29, 18),
1625
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(23, 27),
1637
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(33, 21),
1649
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(50, 18),
1886
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(23, 27),
1898
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(33, 21),
1910
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "_object_null").WithArguments("S1").WithLocation(50, 18),
3339
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "(string)null").WithArguments("S1").WithLocation(27, 25),
3348
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "(string)null").WithArguments("C1").WithLocation(32, 25),
5346
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "true").WithArguments("S1").WithLocation(18, 18),
5355
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "true").WithArguments("S1").WithLocation(30, 18),
6339
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, @"""1""").WithArguments("S1").WithLocation(100, 25),
6354
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, @"""1""").WithArguments("S1").WithLocation(103, 41),
6363
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, @"""1""").WithArguments("S1").WithLocation(104, 18),
6411
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, @"""1""").WithArguments("S1").WithLocation(100, 25),
6426
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, @"""1""").WithArguments("S1").WithLocation(103, 41),
6435
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, @"""1""").WithArguments("S1").WithLocation(104, 18),
6530
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "empty").WithArguments("S1").WithLocation(100, 18),
6539
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "empty").WithArguments("S1").WithLocation(200, 18),
6651
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "1").WithArguments("S1").WithLocation(100, 27),
6663
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "1").WithArguments("S1").WithLocation(102, 43),
6672
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "1").WithArguments("S1").WithLocation(103, 20),
6719
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "1").WithArguments("S1").WithLocation(100, 27),
6731
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "1").WithArguments("S1").WithLocation(102, 43),
6740
Diagnostic(ErrorCode.
ERR_UnionMatchingWrongPattern
, "1").WithArguments("S1").WithLocation(103, 20),