19 references to ERR_GenericArgIsStaticClass
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1066
or ErrorCode.
ERR_GenericArgIsStaticClass
Symbols\ConstraintsHelper.cs (1)
994
diagnosticsBuilder.Add(new TypeParameterDiagnosticInfo(typeParameter, new UseSiteInfo<AssemblySymbol>(new CSDiagnosticInfo(ErrorCode.
ERR_GenericArgIsStaticClass
, typeArgument.Type))));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Semantics\QueryTests.cs (6)
2769
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "string.Empty.Cast<GC>").WithArguments("System.GC").WithLocation(9, 18),
2772
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "from GC x in string.Empty").WithArguments("System.GC").WithLocation(10, 28)
2801
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "string.Empty.Cast<GC>").WithArguments("System.GC").WithLocation(9, 18),
2804
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "from GC x in string.Empty").WithArguments("System.GC").WithLocation(10, 28)
2824
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "Cast<GC>").WithArguments("System.GC").WithLocation(9, 31),
2827
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "from GC x in string.Empty").WithArguments("System.GC").WithLocation(10, 28)
Semantics\SemanticAnalyzerTests.cs (1)
203
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "D3").WithArguments("D3").WithLocation(9, 11),
Semantics\SemanticErrorTests.cs (1)
11846
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "GenericMethod<StaticClass>").WithArguments("StaticClass").WithLocation(11, 9));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\ExtensionMethodTests.cs (1)
1956
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "E<S>").WithArguments("S").WithLocation(6, 14),
Symbols\GenericConstraintTests.cs (1)
2802
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "Static").WithArguments("Static").WithLocation(25, 16),
Symbols\InterfaceImplementationTests.cs (1)
1823
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "B"));
Symbols\SymbolErrorTests.cs (6)
13474
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(10, 11),
13477
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(11, 11),
13480
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(12, 11),
13483
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "M<S>").WithArguments("S").WithLocation(13, 9),
13486
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(14, 29),
20483
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "M").WithArguments("C").WithLocation(5, 9)