class A { constructor() { } constructor() { } fun foo() { } constructor() fun foo() { } constructor() { } val x = 1 constructor() { } fun foo() { } val x = 1 constructor() { } val x = 1 val x = 1 constructor() { } constructor() { x = 1 } fun foo() = 1 constructor() { } fun foo() = 1 constructor() : this() { } constructor() : this() { } constructor() : this() constructor() : super() { } }