class C { val y: Int field = y get var z: Int field = z get set val property: Int field = 0 get class NestedClass { constructor() /* primary */ { super/*Any*/() /* () */ } fun function() { println(message = "3") } fun Int.memberExtensionFunction() { println(message = "4") } } interface NestedInterface { fun bar() { return .foo() } abstract fun foo() } companion object Companion { private constructor() /* primary */ { super/*Any*/() /* () */ } } constructor() { this/*C*/(x = 0, y = 0, z = 0) } constructor(x: Int, y: Int, z: Int = 1) /* primary */ { super/*Any*/() /* () */ } fun function() { println(message = "1") } fun Int.memberExtensionFunction() { println(message = "2") } val propertyWithGet: Int get(): Int { return 42 } var propertyWithGetAndSet: Int get(): Int { return .() } set(value: Int) { .( = value) } }