[Fir2IR] Don't build overrides for expect classes.

We don't need them except for checking.
And checking doesn't work in any reasonable way anyway.

^KT-65249 Fixed
This commit is contained in:
Pavel Kunyavskiy
2024-02-09 12:47:01 +01:00
committed by Space Team
parent baaaf4567e
commit 8d725753f8
65 changed files with 133 additions and 488 deletions
@@ -0,0 +1,26 @@
// LANGUAGE: +MultiPlatformProjects
// MODULE: common
// FILE: common.kt
interface Source {
fun read(sink: Buffer): String
}
expect class Buffer()
expect abstract class ForwardingSource: Source {
override fun read(sink: Buffer): String
}
// MODULE: jvm()()(common)
// FILE: platfrom.kt
actual class Buffer actual constructor()
actual abstract class ForwardingSource : Source {
actual override fun read(sink: Buffer): String = "OK"
}
fun box() : String{
return (object : ForwardingSource() {}).read(Buffer())
}