class Foo var _name as String cue init(name as String?) base.init if name is not nil _name = name class Bar var _name as String pro name from var class Test def main is shared Foo('aoeu') expect AssertException Foo(nil) expect AssertException Bar()