19 references to ERR_GenericArgIsStaticClass
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
1004
case ErrorCode.
ERR_GenericArgIsStaticClass
:
Symbols\ConstraintsHelper.cs (1)
891
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)
11842
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "GenericMethod<StaticClass>").WithArguments("StaticClass").WithLocation(11, 9));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Symbols\ExtensionMethodTests.cs (1)
1961
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "E<S>").WithArguments("S").WithLocation(6, 14),
Symbols\GenericConstraintTests.cs (1)
2800
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "Static").WithArguments("Static").WithLocation(25, 16),
Symbols\InterfaceImplementationTests.cs (1)
1823
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "B"));
Symbols\SymbolErrorTests.cs (6)
13326
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(10, 11),
13329
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(11, 11),
13332
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(12, 11),
13335
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "M<S>").WithArguments("S").WithLocation(13, 9),
13338
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "S").WithArguments("S").WithLocation(14, 29),
20338
Diagnostic(ErrorCode.
ERR_GenericArgIsStaticClass
, "M").WithArguments("C").WithLocation(5, 9)