Marc Knaup
05/08/2019, 1:40 PMexpect
or not?
common module:
sealed class Test {
object A : Test()
}
If I don't use `expect`:
fun Test.print() {
when (this) {
is Test.A -> print() // calls method below
}
}
fun Test.A.print() { // gets called
println("A")
}
If I use `expect`:
fun Test.print() {
when (this) {
is Test.A -> print() // recursive call
}
}
expect fun Test.A.print() // not called
louiscad
05/08/2019, 2:16 PMMarc Knaup
05/08/2019, 9:00 PM