JS frontend: added tests for nativeInvoke, nativeGetter, nativeSetter.
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun foo() {
|
||||
[native]
|
||||
class A {
|
||||
nativeInvoke
|
||||
fun foo() {}
|
||||
|
||||
nativeInvoke
|
||||
fun invoke(a: String): Int = 0
|
||||
|
||||
val anonymous = object {
|
||||
nativeInvoke
|
||||
fun foo() {}
|
||||
|
||||
nativeInvoke
|
||||
fun invoke(a: String): Int = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user