""" * decl class var without type is dynamic * decl prop without type is dynamic * decl method arg without type is dynamic """ class Test var _x cue init(x) base.init _x = x pro x from var pro stuff get return _x set _x = value def foo(x) x = 5 assert x == 5 x = 'aoeu' assert x.length==4 def lengthOf(x) as int return x.length to int # CC: axe cast def run _x = 5 _x = 'aoeu' _x = Test(1) .x = 5 assert .x == 5 .x = 'aoeu' assert .x == 'aoeu' assert .x.length == 4 .x = Test(1) assert .x .stuff = 5 assert .stuff == 5 .stuff = 'aoeu' assert .stuff == 'aoeu' assert .stuff.length == 4 .stuff = Test(1) assert .stuff .stuff = 10 d = .stuff assert d d = 'aoeu' assert d assert .lengthOf('aoeu') == 4 assert .lengthOf(@[1, 2]) == 2 def main is shared Test(0).run