11 references to ERR_AttrTypeArgCannotBeTypeVar
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1421
diagnostics.Add(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, attributeName, type);
Errors\ErrorFacts.cs (1)
2223
or ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests.cs (8)
7971
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Gen2<U>").WithArguments("U").WithLocation(9, 2),
7974
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Gen2<System.Collections.Generic.List<U>>").WithArguments("U").WithLocation(10, 2),
11179
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T2>").WithArguments("T2").WithLocation(10, 6),
11273
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T2>").WithArguments("T2").WithLocation(10, 6),
11424
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T>").WithArguments("T").WithLocation(6, 6),
11427
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "AttrContainer<T>.Attr").WithArguments("T").WithLocation(11, 6),
11430
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "AttrContainer<T>.B.Attr").WithArguments("T").WithLocation(16, 6),
11433
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T[]>").WithArguments("T").WithLocation(21, 6));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
8618
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "My<TParameter>").WithArguments("TParameter").WithLocation(2, 2)