18 references to ERR_AttrDependentTypeNotAllowed
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Expressions.cs (1)
1415
diagnostics.Add(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, attributeName, type);
Errors\ErrorFacts.cs (1)
2224
or ErrorCode.
ERR_AttrDependentTypeNotAllowed
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
Attributes\AttributeTests.cs (16)
10793
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<dynamic>").WithArguments("dynamic").WithLocation(10, 2),
10796
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<List<dynamic>>").WithArguments("dynamic").WithLocation(11, 2),
10799
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<nint>").WithArguments("nint").WithLocation(12, 2),
10802
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<List<nint>>").WithArguments("nint").WithLocation(13, 2),
10805
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<string?>").WithArguments("string").WithLocation(14, 2),
10808
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<List<string?>>").WithArguments("string").WithLocation(15, 2),
10811
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<(int a, int b)>").WithArguments("(int a, int b)").WithLocation(16, 2),
10814
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<List<(int a, int b)>>").WithArguments("(int a, int b)").WithLocation(17, 2),
10817
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "Attr<(int a, string? b)>").WithArguments("(int a, string? b)").WithLocation(18, 2));
11468
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "A<(int A, int B)>.B").WithArguments("(int A, int B)").WithLocation(4, 2),
11471
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "global::A<(int A, int B)>.B").WithArguments("(int A, int B)").WithLocation(9, 2),
11474
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "A<(int A, int B)[]>.B").WithArguments("(int A, int B)").WithLocation(14, 2));
11504
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "A<(int A, int B)>.B").WithArguments("(int A, int B)").WithLocation(4, 2),
11507
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "global::A<(int A, int B)>.B").WithArguments("(int A, int B)").WithLocation(9, 2));
11532
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "N2::A<(int A, int B)>.B").WithArguments("(int A, int B)").WithLocation(4, 2));
11557
Diagnostic(ErrorCode.
ERR_AttrDependentTypeNotAllowed
, "AB").WithArguments("(int A, int B)").WithLocation(4, 2));