Files
kotlin-fork/compiler/testData/codegen/box/super/kt4173_3.kt
T
2019-11-19 11:00:09 +03:00

28 lines
339 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
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"
}