28 references to ERR_PatternWrongGenericTypeInVersion
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Patterns.cs (1)
777
Error(diagnostics, ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, typeSyntax,
Errors\ErrorFacts.cs (1)
1835
or ErrorCode.
ERR_PatternWrongGenericTypeInVersion
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\SwitchTests.cs (12)
9444
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("System.ValueType", "T", "7.0", "7.1").WithLocation(13, 21),
9447
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("System.ValueType", "T", "7.0", "7.1").WithLocation(19, 18)
9575
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "int").WithArguments("T", "int", "7.0", "7.1").WithLocation(13, 21),
9578
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "int").WithArguments("T", "int", "7.0", "7.1").WithLocation(19, 18)
9768
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(14, 21),
9771
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(20, 18)
9823
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(14, 21),
9826
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(20, 18)
9876
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(13, 21),
9879
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(19, 18)
9928
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(13, 21),
9931
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("A", "T", "7.0", "7.1").WithLocation(19, 18)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
FlowAnalysis\FlowTests.cs (1)
5515
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("System.ValueType", "T", "7.0", "7.1").WithLocation(5, 21));
Semantics\PatternMatchingTests.cs (13)
5253
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "U").WithArguments("string", "U", "7.0", "7.1").WithLocation(8, 18),
5256
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("string", "T", "7.0", "7.1").WithLocation(10, 18)
5814
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Derived").WithArguments("T", "Derived", "7.0", "7.1").WithLocation(13, 28),
5817
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Derived").WithArguments("T", "Derived", "7.0", "7.1").WithLocation(16, 18)
5857
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("Base", "T", "7.0", "7.1").WithLocation(13, 28),
5860
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "T").WithArguments("Base", "T", "7.0", "7.1")
5900
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").WithLocation(13, 28),
5903
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Derived<T>").WithArguments("T", "Derived<T>", "7.0", "7.1").WithLocation(16, 18)
5946
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").WithLocation(16, 28),
5949
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Container<T>.Derived").WithArguments("T", "Container<T>.Derived", "7.0", "7.1").WithLocation(19, 18)
5992
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").WithLocation(16, 28),
5995
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Container<T>.Derived[]").WithArguments("T[]", "Container<T>.Derived[]", "7.0", "7.1").WithLocation(19, 18)
6131
Diagnostic(ErrorCode.
ERR_PatternWrongGenericTypeInVersion
, "Packet<T>").WithArguments("T", "Packet<T>", "7.0", "7.1").WithLocation(12, 52)