Add explicit imports of kotlin.js.* to stdlib where required.

This commit is contained in:
Ilya Gorbunov
2017-01-27 23:41:32 +03:00
parent 25c3064554
commit 66abea1f19
7 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
package kotlin.text
import kotlin.text.js.*
import kotlin.js.RegExp
/**
* Provides enumeration values to use to set regular expression options.
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package kotlin.text.js
package kotlin.js
public external class RegExp(pattern: String, flags: String? = definedExternally) {
+1 -1
View File
@@ -1,6 +1,6 @@
package kotlin.text
import kotlin.text.js.RegExp
import kotlin.js.RegExp
@kotlin.internal.InlineOnly
public inline fun String.toUpperCase(): String = asDynamic().toUpperCase()
+1 -1
View File
@@ -1,6 +1,6 @@
package kotlin.text
import kotlin.text.js.RegExp
import kotlin.js.RegExp
internal inline fun String.nativeIndexOf(ch: Char, fromIndex: Int): Int = nativeIndexOf(ch.toString(), fromIndex)
internal inline fun String.nativeLastIndexOf(ch: Char, fromIndex: Int): Int = nativeLastIndexOf(ch.toString(), fromIndex)
@@ -3,6 +3,7 @@ package jquery.ui
//jquery UI
import jquery.JQuery
import kotlin.js.Json
@Deprecated("JQuery is going to be removed from the standard library")
public inline fun JQuery.buttonset(): JQuery = asDynamic().buttonset()
+1
View File
@@ -1,5 +1,6 @@
package test.js
import kotlin.js.*
import kotlin.test.*
import org.junit.Test as test
+1 -1
View File
@@ -16,7 +16,7 @@
package test.js
import kotlin.text.js.*
import kotlin.js.*
import kotlin.test.*
import org.junit.Test as test