class FooAttribute
inherits Attribute
pro bar from var as Type?
class WithGeneric<of T>
pass
class WithAttribute
pro foo from var as int?
has FooAttribute(bar = WithGeneric<of int>.getType)
class Program
shared
def main
pass
- Code: Select all
test.cobra(14): error: The definition for "WithGeneric<of>.getType" is not a type.
Compilation failed - 1 error, 0 warnings
Not running due to errors above.