JS frontend: allow to omit body for native functions and initializer for native properties. Additionally suppress UNUSED_PARAM for new nativeX annotations too.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
nativeInvoke
|
||||
fun String.foo(): Int
|
||||
nativeInvoke
|
||||
fun String.bar(): Int = noImpl
|
||||
|
||||
|
||||
native
|
||||
object O {
|
||||
nativeInvoke
|
||||
fun foo()
|
||||
nativeInvoke
|
||||
fun bar() {}
|
||||
}
|
||||
Reference in New Issue
Block a user