Problem with TypeName<of T>.getType in attributes
Posted: Fri Sep 18, 2009 11:25 am
This looks like a corner corner case:
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.