JS: make Any as upper bound of type parameter of JsClass and helpers

This commit is contained in:
Zalim Bashorov
2016-10-04 14:22:44 +03:00
parent e6887ea4e5
commit d31f18137d
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -17,12 +17,12 @@
package kotlin.js
@native
interface JsClass<T> {
interface JsClass<T : Any> {
val name: String
}
@native
fun <T> jsClass(): JsClass<T> = noImpl
fun <T : Any> jsClass(): JsClass<T> = noImpl
val <T> T.jsClass: JsClass<T>
val <T : Any> T.jsClass: JsClass<T>
get() = js("Object").getPrototypeOf(this).constructor