class A pro b from var as Object? class P def main a = A() assert a.b is nil a = A(b=5) assert a.b == 5 a = A(b=String) assert a.b is String a = A(b=List) # reference a generic type in a keyword argument assert a.b is List