8d3f6f1ce7
For each platform declaration, there must be at least one impl declaration in the module with the compatible signature; similarly, for each impl declaration, there must be at least one platform declaration with the compatible signature. Note that currently the presence of the 'impl' modifier is not checked yet. Also, the sad fact is that if you have platform and impl declarations which are not compatible, you get two errors: on the platform delcaration and on the impl declaration. This needs to be addressed as well
15 lines
304 B
Kotlin
Vendored
15 lines
304 B
Kotlin
Vendored
impl fun Int.plus(s: CharSequence): Int = 0
|
|
impl infix fun Int.minus(s: String): Int = 1
|
|
|
|
impl fun Double.times(x: CharArray) {}
|
|
impl operator fun Double.divide(x: ByteArray) {}
|
|
|
|
impl fun f1() {}
|
|
impl external fun g1()
|
|
|
|
impl fun f2() {}
|
|
impl inline fun g2() {}
|
|
|
|
impl fun f3() {}
|
|
impl tailrec fun g3() {}
|