Files
kotlin-fork/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.kt
T
Dmitriy Novozhilov 3d6ec0ec75 [FIR2IR] Automatically store IR declaration in its parent upon creation
Previously, creating a declaration with Fir2IrCallableDeclarationsGenerator/
  Fir2IrClassifiersGenerator didn't guarantee that this declaration will
  be actually added to the list of parent class/file declarations, which
  lead to situations when FIR2IR created some declarations in the air
  (mostly fake-overrides)
2023-10-17 12:46:27 +00:00

11 lines
148 B
Kotlin
Vendored

// FIR_IDENTICAL
interface A {
fun f(x: String = "OK"): String
}
class B : A {
override fun f(x: String) = x
}
class C(val x: A) : A by x