Minor: "js.noImpl" -> "noImpl"

This commit is contained in:
Zalim Bashorov
2014-09-16 17:06:24 +04:00
parent 38401d04d5
commit 507bfe49aa
25 changed files with 169 additions and 169 deletions
@@ -2,8 +2,8 @@ package foo
native
class A(b: Int) {
fun g(): Int = js.noImpl
fun m(): Int = js.noImpl
fun g(): Int = noImpl
fun m(): Int = noImpl
}
@@ -4,8 +4,8 @@ native
class A(val c: Int) {
native
class object {
val g: Int = js.noImpl
val c: String = js.noImpl
val g: Int = noImpl
val c: String = noImpl
}
}
@@ -2,12 +2,12 @@ package foo
native
class Wow() {
val x: Int = js.noImpl
val y: Int = js.noImpl
val x: Int = noImpl
val y: Int = noImpl
}
native
fun Wow.sum(): Int = js.noImpl
fun Wow.sum(): Int = noImpl
fun Wow.dblSum(): Int {
return 2 * sum()
@@ -16,4 +16,4 @@ fun Wow.dblSum(): Int {
fun box(): Boolean {
return (Wow().dblSum() == 6)
}
}
@@ -9,11 +9,11 @@ class B : A("B") {
var prop: String = "B prop"
}
native fun A.bar(): String = js.noImpl
native fun A.bar(): String = noImpl
native var A.prop: String
get() = js.noImpl
set(value) = js.noImpl
get() = noImpl
set(value) = noImpl
fun box(): String {
var a: A = A("A")
@@ -37,4 +37,4 @@ fun box(): String {
assertEquals("B prop", (A::prop).get(a))
return "OK";
}
}
@@ -2,13 +2,13 @@ package foo
native
class A(val v: String) {
fun m(i:Int, s:String): String = js.noImpl
fun m(i:Int, s:String): String = noImpl
}
native
fun A.nativeExt(i:Int, s:String): String = js.noImpl
fun A.nativeExt(i:Int, s:String): String = noImpl
native("nativeExt2AnotherName")
fun A.nativeExt2(i:Int, s:String): String = js.noImpl
fun A.nativeExt2(i:Int, s:String): String = noImpl
fun bar(a: A, extLambda: A.(Int, String) -> String): String = a.(extLambda)(4, "boo")
@@ -25,4 +25,4 @@ fun box(): String {
assertEquals("nativeExt2 test 4 boo", bar(a, A::nativeExt2))
return "OK"
}
}
@@ -1,7 +1,7 @@
package foo
native
fun nativeFun(i:Int, s:String): String = js.noImpl
fun nativeFun(i:Int, s:String): String = noImpl
fun bar(funRef: (Int, String) -> String): String = funRef(4, "boo")
@@ -16,4 +16,4 @@ fun box(): String {
if (r != "nativeFun 4 boo") return r
return "OK"
}
}
@@ -1,6 +1,6 @@
package foo
native
fun returnFalse(): Boolean = js.noImpl
fun returnFalse(): Boolean = noImpl
fun box() = !returnFalse()
@@ -1,7 +1,7 @@
package foo
native
val c: Any? = js.noImpl
val c: Any? = noImpl
fun box(): Boolean {
if (c != null) return false
@@ -2,7 +2,7 @@ package foo
/*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
fun f(g: (Int?) -> Int): Boolean = noImpl
fun box(): Boolean {
@@ -1,10 +1,10 @@
package foo
native
fun paramCount(vararg a: Int): Int = js.noImpl
fun paramCount(vararg a: Int): Int = noImpl
native("paramCount")
fun anotherParamCount(vararg a: Int): Int = js.noImpl
fun anotherParamCount(vararg a: Int): Int = noImpl
// test spread operator
fun count(vararg a: Int) = paramCount(*a)
@@ -13,23 +13,23 @@ fun count(vararg a: Int) = paramCount(*a)
fun anotherCount(vararg a: Int) = anotherParamCount(*a)
native
fun test3(bar: Bar, dummy: Int, vararg args: Int): Boolean = js.noImpl
fun test3(bar: Bar, dummy: Int, vararg args: Int): Boolean = noImpl
native
fun Bar.test2(order: Int, dummy: Int, vararg args: Int): Boolean = js.noImpl
fun Bar.test2(order: Int, dummy: Int, vararg args: Int): Boolean = noImpl
native
class Bar(val size: Int, order: Int = 0) {
fun test(order: Int, dummy: Int, vararg args: Int): Boolean = js.noImpl
fun test(order: Int, dummy: Int, vararg args: Int): Boolean = noImpl
class object {
fun startNewTest(): Boolean = js.noImpl
fun startNewTest(): Boolean = noImpl
var hasOrderProblem: Boolean = false
}
}
native
object obj {
fun test(size: Int, vararg args: Int): Boolean = js.noImpl
fun test(size: Int, vararg args: Int): Boolean = noImpl
}
fun spreadInMethodCall(size: Int, vararg args: Int) = Bar(size).test(0, 1, *args)
@@ -41,7 +41,7 @@ fun spreadInMethodCallWithReceiver(size: Int, vararg args: Int) = Bar(size).test
fun spreadInPackageMethodCall(size: Int, vararg args: Int) = test3(Bar(size), 1, *args)
native
fun testNativeVarargWithFunLit(vararg args: Int, f: (a: IntArray) -> Boolean): Boolean = js.noImpl
fun testNativeVarargWithFunLit(vararg args: Int, f: (a: IntArray) -> Boolean): Boolean = noImpl
fun testSpreadOperatorWithSafeCall(a: Bar?, expected: Boolean?, vararg args: Int): Boolean {
return a?.test(0, 1, *args) == expected