Andreas Jost
11/20/2019, 7:32 PMexpect interface A {
fun doSomething()
}
actual interface A {
actual fun doSomething() { /*do sth. */ }
}
This code causes an error, because the expected function is abstract by default and the actual function has an implementation, which means that modality is different. Can I somehow define the expect function as non-abstract? Usually you would give a function of an interface a body to make it non-abstract. If you do that, the error at the actual declaration is gone, but expected declarations must not have bodies, so that's another error.Kris Wong
11/20/2019, 7:46 PMKris Wong
11/20/2019, 7:47 PMAndreas Jost
11/20/2019, 7:56 PMinterface A
expect A.doSomething()
actual A.doSomething() { ... }
Kris Wong
11/20/2019, 8:02 PMKris Wong
11/20/2019, 8:02 PMArkadii Ivanov
11/21/2019, 1:23 AM