Rey (Kingg22)
04/01/2026, 9:36 PMpublic fun Vector2?.asVariant(): Variant = if (this == null) Variant.NIL() else Variant.VECTOR2(this)
Can I add a contract to smart cast return type to specifics subclasses?? Otherwise I needs to define a overload with non-null receiver right??