Report error on native declaration with a body

This commit is contained in:
Andrey Breslav
2014-12-01 15:49:05 +03:00
parent d4cf789b53
commit a94a1f8a6f
8 changed files with 79 additions and 5 deletions
@@ -3,7 +3,7 @@ package foo
import kotlin.jvm.*
class WithNative {
native fun foo() {}
native fun foo()
}
fun box(): String {
@@ -5,12 +5,12 @@ import kotlin.platform.*
class WithNative {
class object {
platformStatic native fun bar(l: Long, s: String): Double = null!!
platformStatic native fun bar(l: Long, s: String): Double
}
}
object ObjWithNative {
platformStatic native fun bar(l: Long, s: String): Double = null!!
platformStatic native fun bar(l: Long, s: String): Double
}
fun box(): String {