class NamedCtor def main is shared x1 = NamedCtor(sName='foo', age=99) assert x1.x == 'foo' assert x1.a == 99 x2 = NamedCtor(xcomb=88, sName='foo') # .error. Incorrect arg ordering assert x2.x == 'wrong' # notReached assert x2.a == 55 assert x2.xcomb == 88 assert x2.ycomb == 0 x2 = NamedCtor(xcomb=88, ycomb=99, sName='foo') # .error. Incorrect arg ordering assert x2.x == 'wrong' # notReached assert x2.a == 55 assert x2.xcomb == 88 assert x2.ycomb == 99 x3 = NamedCtor(xcomb=88, ycomb=99, 55) # .error. Incorrect arg ordering assert x3.x == 'wrong' # notReached assert x3.a == 55 assert x3.xcomb == 88 assert x3.ycomb == 99 var x = '' var a = 0 pro xcomb from var = 0 pro ycomb from var = 0 cue init(sName as String = 'fou', age as int = 55) base.init .x = sName .a = age