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:
Zalim Bashorov
2014-12-26 19:10:12 +03:00
parent 41dff74037
commit 9869ae10e5
25 changed files with 616 additions and 43 deletions
@@ -0,0 +1,19 @@
nativeSetter
fun Int.foo(a: String, v: Int): Int = noImpl
native
class Bar(b: Int, c: Char) {
nativeSetter
fun baz(d: Int, v: Int) {}
}
native
object Obj {
nativeSetter
fun test1(e: String, v: Any) {}
object Nested {
nativeSetter
fun test2(g: Int, v: Any) {}
}
}