Report error on native declaration with a body
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user