|
@@ -395,6 +395,11 @@ public class MustBeVariantAnnotatedMethods
|
|
|
public void MethodWithWrongAttribute()
|
|
|
{
|
|
|
}
|
|
|
+
|
|
|
+ [NestedGenericTypeAttributeContainer.NestedGenericTypeAttribute<bool>()]
|
|
|
+ public void MethodWithNestedAttribute()
|
|
|
+ {
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
[GenericTypeAttribute<bool>()]
|
|
@@ -657,3 +662,11 @@ public class ClassNonVariantAnnotated
|
|
|
public class GenericTypeAttribute<[MustBeVariant] T> : Attribute
|
|
|
{
|
|
|
}
|
|
|
+
|
|
|
+public class NestedGenericTypeAttributeContainer
|
|
|
+{
|
|
|
+ [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
|
|
+ public class NestedGenericTypeAttribute<[MustBeVariant] T> : Attribute
|
|
|
+ {
|
|
|
+ }
|
|
|
+}
|