diff --git a/js/js.libraries/src/core/date.kt b/js/js.libraries/src/core/date.kt index f9a77bff5ca..f1722271a86 100644 --- a/js/js.libraries/src/core/date.kt +++ b/js/js.libraries/src/core/date.kt @@ -2,5 +2,5 @@ package kotlin.js native public class Date() { - public fun getTime() : Int = js.noImpl + public fun getTime() : Int = noImpl } diff --git a/js/js.libraries/src/core/javalang.kt b/js/js.libraries/src/core/javalang.kt index 0babc860020..212a58b4527 100644 --- a/js/js.libraries/src/core/javalang.kt +++ b/js/js.libraries/src/core/javalang.kt @@ -45,10 +45,10 @@ public trait Appendable { library public class StringBuilder() : Appendable { - override fun append(c: Char): StringBuilder = js.noImpl - override fun append(csq: CharSequence?): StringBuilder = js.noImpl - override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = js.noImpl - public fun append(obj: Any?): StringBuilder = js.noImpl - public fun reverse(): StringBuilder = js.noImpl - override fun toString(): String = js.noImpl + override fun append(c: Char): StringBuilder = noImpl + override fun append(csq: CharSequence?): StringBuilder = noImpl + override fun append(csq: CharSequence?, start: Int, end: Int): StringBuilder = noImpl + public fun append(obj: Any?): StringBuilder = noImpl + public fun reverse(): StringBuilder = noImpl + override fun toString(): String = noImpl } diff --git a/js/js.libraries/src/core/javautil.kt b/js/js.libraries/src/core/javautil.kt index 454fabd3416..ec7a32b9314 100644 --- a/js/js.libraries/src/core/javautil.kt +++ b/js/js.libraries/src/core/javautil.kt @@ -13,49 +13,49 @@ public trait Comparator { library public abstract class AbstractCollection() : MutableCollection { - override fun isEmpty(): Boolean = js.noImpl - override fun contains(o: Any?): Boolean = js.noImpl - override fun iterator(): MutableIterator = js.noImpl + override fun isEmpty(): Boolean = noImpl + override fun contains(o: Any?): Boolean = noImpl + override fun iterator(): MutableIterator = noImpl - override fun add(e: E): Boolean = js.noImpl - override fun remove(o: Any?): Boolean = js.noImpl + override fun add(e: E): Boolean = noImpl + override fun remove(o: Any?): Boolean = noImpl - override fun addAll(c: Collection): Boolean = js.noImpl - override fun containsAll(c: Collection): Boolean = js.noImpl - override fun removeAll(c: Collection): Boolean = js.noImpl - override fun retainAll(c: Collection): Boolean = js.noImpl + override fun addAll(c: Collection): Boolean = noImpl + override fun containsAll(c: Collection): Boolean = noImpl + override fun removeAll(c: Collection): Boolean = noImpl + override fun retainAll(c: Collection): Boolean = noImpl - override fun clear(): Unit = js.noImpl - override fun size(): Int = js.noImpl + override fun clear(): Unit = noImpl + override fun size(): Int = noImpl - override fun hashCode(): Int = js.noImpl - override fun equals(other: Any?): Boolean = js.noImpl + override fun hashCode(): Int = noImpl + override fun equals(other: Any?): Boolean = noImpl } library public abstract class AbstractList() : AbstractCollection(), MutableList { - override fun get(index: Int): E = js.noImpl - override fun set(index: Int, element: E): E = js.noImpl + override fun get(index: Int): E = noImpl + override fun set(index: Int, element: E): E = noImpl - override fun add(e: E): Boolean = js.noImpl - override fun add(index: Int, element: E): Unit = js.noImpl - override fun addAll(index: Int, c: Collection): Boolean = js.noImpl + override fun add(e: E): Boolean = noImpl + override fun add(index: Int, element: E): Unit = noImpl + override fun addAll(index: Int, c: Collection): Boolean = noImpl - override fun remove(index: Int): E = js.noImpl + override fun remove(index: Int): E = noImpl - override fun indexOf(o: Any?): Int = js.noImpl - override fun lastIndexOf(o: Any?): Int = js.noImpl + override fun indexOf(o: Any?): Int = noImpl + override fun lastIndexOf(o: Any?): Int = noImpl - override fun listIterator(): MutableListIterator = js.noImpl - override fun listIterator(index: Int): MutableListIterator = js.noImpl + override fun listIterator(): MutableListIterator = noImpl + override fun listIterator(index: Int): MutableListIterator = noImpl - override fun subList(fromIndex: Int, toIndex: Int): MutableList = js.noImpl + override fun subList(fromIndex: Int, toIndex: Int): MutableList = noImpl - override fun size(): Int = js.noImpl + override fun size(): Int = noImpl - override fun equals(other: Any?): Boolean = js.noImpl + override fun equals(other: Any?): Boolean = noImpl - override fun toString(): String = js.noImpl + override fun toString(): String = noImpl } library @@ -64,15 +64,15 @@ public open class ArrayList(capacity: Int = 0) : AbstractList() { library public open class LinkedList() : AbstractList() { - override fun get(index: Int): E = js.noImpl - override fun set(index: Int, element: E): E = js.noImpl - override fun add(index: Int, element: E): Unit = js.noImpl + override fun get(index: Int): E = noImpl + override fun set(index: Int, element: E): E = noImpl + override fun add(index: Int, element: E): Unit = noImpl [suppress("BASE_WITH_NULLABLE_UPPER_BOUND")] - public fun poll(): E? = js.noImpl + public fun poll(): E? = noImpl [suppress("BASE_WITH_NULLABLE_UPPER_BOUND")] - public fun peek(): E? = js.noImpl - public fun offer(e: E): Boolean = js.noImpl + public fun peek(): E? = noImpl + public fun offer(e: E): Boolean = noImpl } library @@ -95,21 +95,21 @@ public open class LinkedHashSet( library public open class HashMap(initialCapacity: Int = DEFAULT_INITIAL_CAPACITY, loadFactor: Float = DEFAULT_LOAD_FACTOR) : MutableMap { - override fun size(): Int = js.noImpl - override fun isEmpty(): Boolean = js.noImpl + override fun size(): Int = noImpl + override fun isEmpty(): Boolean = noImpl [suppress("BASE_WITH_NULLABLE_UPPER_BOUND")] - override fun get(key: Any?): V? = js.noImpl - override fun containsKey(key: Any?): Boolean = js.noImpl + override fun get(key: Any?): V? = noImpl + override fun containsKey(key: Any?): Boolean = noImpl [suppress("BASE_WITH_NULLABLE_UPPER_BOUND")] - override fun put(key: K, value: V): V? = js.noImpl - override fun putAll(m: Map): Unit = js.noImpl + override fun put(key: K, value: V): V? = noImpl + override fun putAll(m: Map): Unit = noImpl [suppress("BASE_WITH_NULLABLE_UPPER_BOUND")] - override fun remove(key: Any?): V? = js.noImpl - override fun clear(): Unit = js.noImpl - override fun containsValue(value: Any?): Boolean = js.noImpl - override fun keySet(): MutableSet = js.noImpl - override fun values(): MutableCollection = js.noImpl - override fun entrySet(): MutableSet> = js.noImpl + override fun remove(key: Any?): V? = noImpl + override fun clear(): Unit = noImpl + override fun containsValue(value: Any?): Boolean = noImpl + override fun keySet(): MutableSet = noImpl + override fun values(): MutableCollection = noImpl + override fun entrySet(): MutableSet> = noImpl } library @@ -128,5 +128,5 @@ public trait Enumeration { native public class Date() { - public fun getTime(): Int = js.noImpl + public fun getTime(): Int = noImpl } diff --git a/js/js.libraries/src/core/javautilCollections.kt b/js/js.libraries/src/core/javautilCollections.kt index 8bc1b76c654..4a7f3d3ffc2 100644 --- a/js/js.libraries/src/core/javautilCollections.kt +++ b/js/js.libraries/src/core/javautilCollections.kt @@ -4,10 +4,10 @@ import java.lang.* import java.util.* library("collectionsMax") -public fun max(col : Collection, comp : Comparator) : T = js.noImpl +public fun max(col : Collection, comp : Comparator) : T = noImpl library("collectionsSort") -public fun sort(list: MutableList): Unit = js.noImpl +public fun sort(list: MutableList): Unit = noImpl library("collectionsSort") -public fun sort(list: MutableList, comparator: java.util.Comparator): Unit = js.noImpl \ No newline at end of file +public fun sort(list: MutableList, comparator: java.util.Comparator): Unit = noImpl diff --git a/js/js.libraries/src/core/json.kt b/js/js.libraries/src/core/json.kt index 1045967a447..4a71dfca098 100644 --- a/js/js.libraries/src/core/json.kt +++ b/js/js.libraries/src/core/json.kt @@ -1,18 +1,18 @@ package kotlin.js native public class Json() { - public fun get(propertyName: String): Any? = js.noImpl - public fun set(propertyName: String, value: Any?): Unit = js.noImpl + public fun get(propertyName: String): Any? = noImpl + public fun set(propertyName: String, value: Any?): Unit = noImpl } library("jsonFromTuples") -public fun json(vararg pairs: Pair): Json = js.noImpl +public fun json(vararg pairs: Pair): Json = noImpl library("jsonFromTuples") -public fun json2(pairs: Array>): Json = js.noImpl +public fun json2(pairs: Array>): Json = noImpl library("jsonAddProperties") -public fun Json.add(other: Json): Json = js.noImpl +public fun Json.add(other: Json): Json = noImpl native public trait JsonClass { diff --git a/js/js.libraries/src/core/kotlin.kt b/js/js.libraries/src/core/kotlin.kt index 37f5c26ce19..e4178931e46 100644 --- a/js/js.libraries/src/core/kotlin.kt +++ b/js/js.libraries/src/core/kotlin.kt @@ -3,36 +3,36 @@ package kotlin import java.util.* library("comparator") -public fun comparator(f : (T, T) -> Int): Comparator = js.noImpl +public fun comparator(f : (T, T) -> Int): Comparator = noImpl library -public fun array(vararg value : T): Array = js.noImpl +public fun array(vararg value : T): Array = noImpl // "constructors" for primitive types array library -public fun doubleArray(vararg content : Double): DoubleArray = js.noImpl +public fun doubleArray(vararg content : Double): DoubleArray = noImpl library -public fun floatArray(vararg content : Float): FloatArray = js.noImpl +public fun floatArray(vararg content : Float): FloatArray = noImpl library -public fun longArray(vararg content : Long): LongArray = js.noImpl +public fun longArray(vararg content : Long): LongArray = noImpl library -public fun intArray(vararg content : Int): IntArray = js.noImpl +public fun intArray(vararg content : Int): IntArray = noImpl library -public fun charArray(vararg content : Char): CharArray = js.noImpl +public fun charArray(vararg content : Char): CharArray = noImpl library -public fun shortArray(vararg content : Short): ShortArray = js.noImpl +public fun shortArray(vararg content : Short): ShortArray = noImpl library -public fun byteArray(vararg content : Byte): ByteArray = js.noImpl +public fun byteArray(vararg content : Byte): ByteArray = noImpl library -public fun booleanArray(vararg content : Boolean): BooleanArray = js.noImpl +public fun booleanArray(vararg content : Boolean): BooleanArray = noImpl library("copyToArray") -public fun Collection.copyToArray(): Array = js.noImpl +public fun Collection.copyToArray(): Array = noImpl diff --git a/js/js.libraries/src/core/math.kt b/js/js.libraries/src/core/math.kt index 042350b49a0..815642af75e 100644 --- a/js/js.libraries/src/core/math.kt +++ b/js/js.libraries/src/core/math.kt @@ -3,27 +3,27 @@ package kotlin.js //TODO: declare using number native public class MathClass() { - public val PI : Double = js.noImpl; - public fun random() : Double = js.noImpl; - public fun abs(value : Double) : Double = js.noImpl - public fun acos(value : Double) : Double = js.noImpl - public fun asin(value : Double) : Double = js.noImpl - public fun atan(value : Double) : Double = js.noImpl - public fun atan2(x : Double, y : Double) : Double = js.noImpl - public fun cos(value : Double) : Double = js.noImpl - public fun sin(value : Double) : Double = js.noImpl - public fun exp(value : Double) : Double = js.noImpl - public fun max(vararg values : Double) : Double = js.noImpl - public fun max(vararg values : Int) : Int = js.noImpl - public fun min(vararg values : Int) : Int = js.noImpl - public fun min(vararg values : Double) : Double = js.noImpl - public fun sqrt(value : Double) : Double = js.noImpl - public fun tan(value : Double) : Double = js.noImpl - public fun log(value : Double) : Double = js.noImpl - public fun pow(base : Double, exp : Double) : Double = js.noImpl - public fun round(value : Number) : Int = js.noImpl - public fun floor(value : Number) : Int = js.noImpl - public fun ceil(value : Number) : Int = js.noImpl + public val PI : Double = noImpl; + public fun random() : Double = noImpl; + public fun abs(value : Double) : Double = noImpl + public fun acos(value : Double) : Double = noImpl + public fun asin(value : Double) : Double = noImpl + public fun atan(value : Double) : Double = noImpl + public fun atan2(x : Double, y : Double) : Double = noImpl + public fun cos(value : Double) : Double = noImpl + public fun sin(value : Double) : Double = noImpl + public fun exp(value : Double) : Double = noImpl + public fun max(vararg values : Double) : Double = noImpl + public fun max(vararg values : Int) : Int = noImpl + public fun min(vararg values : Int) : Int = noImpl + public fun min(vararg values : Double) : Double = noImpl + public fun sqrt(value : Double) : Double = noImpl + public fun tan(value : Double) : Double = noImpl + public fun log(value : Double) : Double = noImpl + public fun pow(base : Double, exp : Double) : Double = noImpl + public fun round(value : Number) : Int = noImpl + public fun floor(value : Number) : Int = noImpl + public fun ceil(value : Number) : Int = noImpl } native diff --git a/js/js.libraries/src/core/string.kt b/js/js.libraries/src/core/string.kt index a5fd51f59a0..3a7ea799724 100644 --- a/js/js.libraries/src/core/string.kt +++ b/js/js.libraries/src/core/string.kt @@ -8,41 +8,41 @@ native public fun String.startsWith(char: Char): Boolean = noImpl native public fun String.endsWith(char: Char): Boolean = noImpl native public fun String.contains(char: Char): Boolean = noImpl -native public fun String.toUpperCase() : String = js.noImpl +native public fun String.toUpperCase() : String = noImpl -native public fun String.toLowerCase() : String = js.noImpl +native public fun String.toLowerCase() : String = noImpl -native public fun String.indexOf(str : String) : Int = js.noImpl -native public fun String.indexOf(str : String, fromIndex : Int) : Int = js.noImpl +native public fun String.indexOf(str : String) : Int = noImpl +native public fun String.indexOf(str : String, fromIndex : Int) : Int = noImpl -native public fun String.lastIndexOf(str: String) : Int = js.noImpl -native public fun String.lastIndexOf(str : String, fromIndex : Int) : Int = js.noImpl +native public fun String.lastIndexOf(str: String) : Int = noImpl +native public fun String.lastIndexOf(str : String, fromIndex : Int) : Int = noImpl library("splitString") -public fun String.split(regex: String): Array = js.noImpl +public fun String.split(regex: String): Array = noImpl library("splitString") -public fun String.split(regex: String, limit: Int): Array = js.noImpl +public fun String.split(regex: String, limit: Int): Array = noImpl -native public fun String.substring(beginIndex : Int) : String = js.noImpl -native public fun String.substring(beginIndex : Int, endIndex : Int) : String = js.noImpl +native public fun String.substring(beginIndex : Int) : String = noImpl +native public fun String.substring(beginIndex : Int, endIndex : Int) : String = noImpl -native public fun String.charAt(index : Int) : Char = js.noImpl +native public fun String.charAt(index : Int) : Char = noImpl -native public fun String.concat(str : String) : String = js.noImpl +native public fun String.concat(str : String) : String = noImpl -native public fun String.match(regex : String) : Array = js.noImpl +native public fun String.match(regex : String) : Array = noImpl -native public fun String.trim() : String = js.noImpl +native public fun String.trim() : String = noImpl native("length") -public val CharSequence.size: Int get() = js.noImpl +public val CharSequence.size: Int get() = noImpl library -public fun CharSequence.length(): Int = js.noImpl +public fun CharSequence.length(): Int = noImpl library -public fun CharSequence.isEmpty(): Boolean = js.noImpl +public fun CharSequence.isEmpty(): Boolean = noImpl /* diff --git a/js/js.libraries/src/html5/files.kt b/js/js.libraries/src/html5/files.kt index 6245f5a4a9e..bdc1a8efdcc 100644 --- a/js/js.libraries/src/html5/files.kt +++ b/js/js.libraries/src/html5/files.kt @@ -2,32 +2,32 @@ package html5.files native public class FileReader() { - public var onloadend : ((FileReaderEvent)->Unit)? = js.noImpl // - public fun readAsDataURL(blob : Blob) = js.noImpl - public val result : File = js.noImpl + public var onloadend : ((FileReaderEvent)->Unit)? = noImpl // + public fun readAsDataURL(blob : Blob): Unit = noImpl + public val result : File = noImpl } native public class FileReaderEvent() { - public val target : FileReader = js.noImpl + public val target : FileReader = noImpl } native public class FileList() { - public fun item(index : Int) : File? = js.noImpl - public val length : Int = js.noImpl + public fun item(index : Int) : File? = noImpl + public val length : Int = noImpl } native public class File() : Blob() { - public val name : String = js.noImpl + public val name : String = noImpl // readonly attribute Date lastModifiedDate; } native public open class Blob() { - public val size : Int = js.noImpl - public val `type` : String = js.noImpl + public val size : Int = noImpl + public val `type` : String = noImpl //Blob slice(optional long long start, //optional long long end, //optional DOMString contentType); diff --git a/js/js.libraries/src/html5/localstorage.kt b/js/js.libraries/src/html5/localstorage.kt index 13dafc6a59e..006ecbe6f0c 100644 --- a/js/js.libraries/src/html5/localstorage.kt +++ b/js/js.libraries/src/html5/localstorage.kt @@ -1,10 +1,10 @@ package html5.localstorage native -public val localStorage : LocalStorageClass = js.noImpl +public val localStorage : LocalStorageClass = noImpl native public class LocalStorageClass() { - public fun getItem(key : String) : Any? = js.noImpl - public fun setItem(key : String, value : Any?) : Unit = js.noImpl + public fun getItem(key : String) : Any? = noImpl + public fun setItem(key : String, value : Any?) : Unit = noImpl } diff --git a/js/js.libraries/src/jquery/common.kt b/js/js.libraries/src/jquery/common.kt index 9dede8a1833..33e86d4d759 100644 --- a/js/js.libraries/src/jquery/common.kt +++ b/js/js.libraries/src/jquery/common.kt @@ -4,8 +4,8 @@ import org.w3c.dom.Element native public public class JQuery() { - public fun addClass(className: String): JQuery = js.noImpl; - public fun addClass(f: Element.(Int, String) -> String): JQuery = js.noImpl; + public fun addClass(className: String): JQuery = noImpl; + public fun addClass(f: Element.(Int, String) -> String): JQuery = noImpl; public fun attr(attrName: String): String = ""; public fun attr(attrName: String, value: String): JQuery = this; @@ -38,9 +38,9 @@ public public class JQuery() { public fun slideUp(): JQuery = this; public fun hover(handlerInOut: Element.() -> Unit): JQuery = this; public fun hover(handlerIn: Element.() -> Unit, handlerOut: Element.() -> Unit): JQuery = this; - public fun next(): JQuery = js.noImpl - public fun parent(): JQuery = js.noImpl - public fun `val`(): String? = js.noImpl + public fun next(): JQuery = noImpl + public fun parent(): JQuery = noImpl + public fun `val`(): String? = noImpl } native diff --git a/js/js.libraries/src/jquery/ui.kt b/js/js.libraries/src/jquery/ui.kt index 06c946bd0f2..48ffacdebb1 100644 --- a/js/js.libraries/src/jquery/ui.kt +++ b/js/js.libraries/src/jquery/ui.kt @@ -5,22 +5,22 @@ package jquery.ui import jquery.JQuery native -public fun JQuery.buttonset() : JQuery = js.noImpl; +public fun JQuery.buttonset() : JQuery = noImpl; native -public fun JQuery.dialog() : JQuery = js.noImpl; +public fun JQuery.dialog() : JQuery = noImpl; native -public fun JQuery.dialog(params : Json) : JQuery = js.noImpl +public fun JQuery.dialog(params : Json) : JQuery = noImpl native -public fun JQuery.dialog(mode : String, param : String) : Any? = js.noImpl +public fun JQuery.dialog(mode : String, param : String) : Any? = noImpl native -public fun JQuery.dialog(mode : String) : JQuery = js.noImpl +public fun JQuery.dialog(mode : String) : JQuery = noImpl native -public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = js.noImpl +public fun JQuery.dialog(mode : String, param : String, value : Any?) : JQuery = noImpl native -public fun JQuery.button() : JQuery = js.noImpl; +public fun JQuery.button() : JQuery = noImpl; native -public fun JQuery.accordion() : JQuery = js.noImpl +public fun JQuery.accordion() : JQuery = noImpl native -public fun JQuery.draggable(params : Json) : JQuery = js.noImpl +public fun JQuery.draggable(params : Json) : JQuery = noImpl native -public fun JQuery.selectable() : JQuery = js.noImpl +public fun JQuery.selectable() : JQuery = noImpl diff --git a/js/js.libraries/src/qunit/core.kt b/js/js.libraries/src/qunit/core.kt index a89aa020886..7be0a2e1fb2 100644 --- a/js/js.libraries/src/qunit/core.kt +++ b/js/js.libraries/src/qunit/core.kt @@ -5,5 +5,5 @@ package QUnit */ native -public fun ok(actual: Boolean, message: String): Unit = js.noImpl; +public fun ok(actual: Boolean, message: String): Unit = noImpl; diff --git a/js/js.libraries/src/stdlib/domCode.kt b/js/js.libraries/src/stdlib/domCode.kt index 6d2e3249b9b..f327a737511 100644 --- a/js/js.libraries/src/stdlib/domCode.kt +++ b/js/js.libraries/src/stdlib/domCode.kt @@ -7,7 +7,7 @@ public fun createDocument(): Document { return js.dom.html.document.implementation.createDocument(null, null, null) } -native public val Node.outerHTML: String get() = js.noImpl +native public val Node.outerHTML: String get() = noImpl /** Converts the node to an XML String */ public fun Node.toXmlString(): String = this.outerHTML diff --git a/js/js.translator/testData/jsTester/jsTester.kt b/js/js.translator/testData/jsTester/jsTester.kt index 910de2a6933..4404b09da98 100644 --- a/js/js.translator/testData/jsTester/jsTester.kt +++ b/js/js.translator/testData/jsTester/jsTester.kt @@ -23,4 +23,4 @@ public class JsTestsAsserter() : Asserter { } native("JsTests.assert") -public fun assert(value: Boolean, message: String): Unit = js.noImpl +public fun assert(value: Boolean, message: String): Unit = noImpl diff --git a/js/js.translator/testData/native/cases/class.kt b/js/js.translator/testData/native/cases/class.kt index c0dde2a0a29..eea8db49f41 100644 --- a/js/js.translator/testData/native/cases/class.kt +++ b/js/js.translator/testData/native/cases/class.kt @@ -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 } diff --git a/js/js.translator/testData/native/cases/classObject.kt b/js/js.translator/testData/native/cases/classObject.kt index 0c3fb9b31d3..3bcb8c55f21 100644 --- a/js/js.translator/testData/native/cases/classObject.kt +++ b/js/js.translator/testData/native/cases/classObject.kt @@ -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 } } diff --git a/js/js.translator/testData/native/cases/kt1519.kt b/js/js.translator/testData/native/cases/kt1519.kt index 525937024a3..2df1586d189 100644 --- a/js/js.translator/testData/native/cases/kt1519.kt +++ b/js/js.translator/testData/native/cases/kt1519.kt @@ -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) -} \ No newline at end of file +} diff --git a/js/js.translator/testData/native/cases/nativeExtensionLikeMember.kt b/js/js.translator/testData/native/cases/nativeExtensionLikeMember.kt index ce19f8d4d76..d088358614c 100644 --- a/js/js.translator/testData/native/cases/nativeExtensionLikeMember.kt +++ b/js/js.translator/testData/native/cases/nativeExtensionLikeMember.kt @@ -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"; -} \ No newline at end of file +} diff --git a/js/js.translator/testData/native/cases/passMemberOrExtFromNative.kt b/js/js.translator/testData/native/cases/passMemberOrExtFromNative.kt index 5620e531d50..8cca0493769 100644 --- a/js/js.translator/testData/native/cases/passMemberOrExtFromNative.kt +++ b/js/js.translator/testData/native/cases/passMemberOrExtFromNative.kt @@ -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" -} \ No newline at end of file +} diff --git a/js/js.translator/testData/native/cases/passTopLevelFunctionFromNative.kt b/js/js.translator/testData/native/cases/passTopLevelFunctionFromNative.kt index 5bf99764694..905fbec497c 100644 --- a/js/js.translator/testData/native/cases/passTopLevelFunctionFromNative.kt +++ b/js/js.translator/testData/native/cases/passTopLevelFunctionFromNative.kt @@ -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" -} \ No newline at end of file +} diff --git a/js/js.translator/testData/native/cases/simple.kt b/js/js.translator/testData/native/cases/simple.kt index 3b18e18f1bf..a18a3f5cee5 100644 --- a/js/js.translator/testData/native/cases/simple.kt +++ b/js/js.translator/testData/native/cases/simple.kt @@ -1,6 +1,6 @@ package foo native -fun returnFalse(): Boolean = js.noImpl +fun returnFalse(): Boolean = noImpl fun box() = !returnFalse() diff --git a/js/js.translator/testData/native/cases/simpleUndefined.kt b/js/js.translator/testData/native/cases/simpleUndefined.kt index c7763c8191f..8b37a9164a2 100644 --- a/js/js.translator/testData/native/cases/simpleUndefined.kt +++ b/js/js.translator/testData/native/cases/simpleUndefined.kt @@ -1,7 +1,7 @@ package foo native -val c: Any? = js.noImpl +val c: Any? = noImpl fun box(): Boolean { if (c != null) return false diff --git a/js/js.translator/testData/native/cases/undefined.kt b/js/js.translator/testData/native/cases/undefined.kt index d858b09f5d4..1402c6d586a 100644 --- a/js/js.translator/testData/native/cases/undefined.kt +++ b/js/js.translator/testData/native/cases/undefined.kt @@ -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 { diff --git a/js/js.translator/testData/native/cases/vararg.kt b/js/js.translator/testData/native/cases/vararg.kt index 3950ff5fe8a..28514bda4d0 100644 --- a/js/js.translator/testData/native/cases/vararg.kt +++ b/js/js.translator/testData/native/cases/vararg.kt @@ -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