df03eb5330
#KT-4173 Fixed
27 lines
309 B
Kotlin
27 lines
309 B
Kotlin
open class C(s: Int) {
|
|
fun test() {
|
|
|
|
}
|
|
}
|
|
|
|
class B(var x: Int) {
|
|
fun foo() {
|
|
class A(val a: Int) : C({a}()) {
|
|
|
|
}
|
|
A(11).test()
|
|
|
|
|
|
class B(val a: Int) : C(a) {
|
|
}
|
|
|
|
B(11).test()
|
|
}
|
|
}
|
|
|
|
|
|
fun box() : String {
|
|
val b = B(1)
|
|
b.foo()
|
|
return "OK"
|
|
} |