3d6ec0ec75
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)
15 lines
215 B
Kotlin
Vendored
15 lines
215 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
interface IFooBar {
|
|
fun foo()
|
|
fun bar()
|
|
}
|
|
|
|
object FooBarImpl : IFooBar {
|
|
override fun foo() {}
|
|
override fun bar() {}
|
|
}
|
|
|
|
class C : IFooBar by FooBarImpl {
|
|
override fun bar() {}
|
|
}
|