11 references to ERR_AttrTypeArgCannotBeTypeVar
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1378
diagnostics.Add(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, errorLocation, type);
Errors\ErrorFacts.cs (1)
2166
case ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (8)
Attributes\AttributeTests.cs (8)
7673
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Gen2<U>").WithArguments("U").WithLocation(9, 2),
7676
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Gen2<System.Collections.Generic.List<U>>").WithArguments("U").WithLocation(10, 2),
10879
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T2>").WithArguments("T2").WithLocation(10, 6),
10983
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T2>").WithArguments("T2").WithLocation(10, 6),
11134
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T>").WithArguments("T").WithLocation(6, 6),
11137
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "AttrContainer<T>.Attr").WithArguments("T").WithLocation(11, 6),
11140
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "AttrContainer<T>.B.Attr").WithArguments("T").WithLocation(16, 6),
11143
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "Attr<T[]>").WithArguments("T").WithLocation(21, 6));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LocalFunctionTests.cs (1)
8534
Diagnostic(ErrorCode.
ERR_AttrTypeArgCannotBeTypeVar
, "My<TParameter>").WithArguments("TParameter").WithLocation(2, 2)