using System; using Godot; using Godot.Collections; using Array = Godot.Collections.Array; public class MustBeVariantGD0301 { public void MethodCallsError() { // This raises a GD0301 diagnostic error: object is not Variant (and Method requires a variant generic type). Method<{|GD0301:object|}>(); } public void MethodCallsOk() { // All these calls are valid because they are Variant types. Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); Method(); } public void Method<[MustBeVariant] T>() { } }