removing static type assertions work in progress

This commit is contained in:
Dmitry Jemerov
2015-10-07 12:19:37 +02:00
parent 8f87efc0a2
commit 1523d5bcbf
149 changed files with 514 additions and 867 deletions
@@ -12,7 +12,7 @@ fun specialJS(): List<GenericFunction> {
body(ArraysOfObjects) {
"""
val al = ArrayList<T>()
(al: dynamic).array = this // black dynamic magic
al.asDynamic().array = this // black dynamic magic
return al
"""
}
@@ -46,7 +46,7 @@ fun specialJS(): List<GenericFunction> {
returns("SELF")
returns(ArraysOfObjects) { "Array<T>" }
body {
"return (this: dynamic).slice(fromIndex, toIndex)"
"return this.asDynamic().slice(fromIndex, toIndex)"
}
}
@@ -58,7 +58,7 @@ fun specialJS(): List<GenericFunction> {
returns("SELF")
returns(ArraysOfObjects) { "Array<T>" }
body {
"return (this: dynamic).slice(0)"
"return this.asDynamic().slice(0)"
}
}
@@ -99,7 +99,7 @@ fun specialJS(): List<GenericFunction> {
doc { "Returns an array containing all elements of the original array and then the given [element]." }
body() {
"""
return (this: dynamic).concat(arrayOf(element))
return this.asDynamic().concat(arrayOf(element))
"""
}
}
@@ -126,7 +126,7 @@ fun specialJS(): List<GenericFunction> {
returns(ArraysOfObjects) { "Array<T>" }
body {
"""
return (this: dynamic).concat(array)
return this.asDynamic().concat(array)
"""
}
}