"js" -> "kotlin.js"

This commit is contained in:
Zalim Bashorov
2014-09-11 16:33:01 +04:00
parent b28b0046d1
commit 838c384672
50 changed files with 171 additions and 228 deletions
@@ -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"
}
}