"js" -> "kotlin.js"
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package foo
|
||||
|
||||
import js.*
|
||||
|
||||
native
|
||||
class A(b: Int) {
|
||||
fun g(): Int = js.noImpl
|
||||
@@ -24,4 +22,4 @@ fun box(): Boolean {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package foo
|
||||
|
||||
import js.*
|
||||
|
||||
native
|
||||
class A(val c: Int) {
|
||||
native
|
||||
@@ -17,4 +15,4 @@ fun box(): Boolean {
|
||||
if (A(2).c != 2) return false
|
||||
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
package foo
|
||||
|
||||
import js.*
|
||||
|
||||
native
|
||||
fun returnFalse(): Boolean = js.noImpl
|
||||
|
||||
fun box() = !returnFalse()
|
||||
fun box() = !returnFalse()
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
package foo
|
||||
|
||||
import js.*
|
||||
|
||||
native
|
||||
val c: Any? = js.noImpl
|
||||
|
||||
fun box(): Boolean {
|
||||
if (c != null) return false
|
||||
return (c == null)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package foo
|
||||
|
||||
import js.*
|
||||
|
||||
/*function g should return 0 if a parameter is undefined 1 if parameter is 1 and 3 if parameter is 3*/
|
||||
native
|
||||
fun f(g: (Int?) -> Int): Boolean = js.noImpl
|
||||
@@ -21,4 +19,4 @@ fun box(): Boolean {
|
||||
}
|
||||
}
|
||||
return f(b)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
package foo
|
||||
|
||||
import js.*
|
||||
|
||||
native
|
||||
fun paramCount(vararg a: Int): Int = js.noImpl
|
||||
|
||||
@@ -118,4 +116,4 @@ fun box(): String {
|
||||
return "failed when combined SureCall and SafeCall, maybe we lost cached expression"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user