[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:
committed by
Space Team
parent
baaaf4567e
commit
8d725753f8
@@ -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())
|
||||
}
|
||||
Reference in New Issue
Block a user