JS IR: Remove inline functions with reified type parameters

Otherwise we cannot handle type casts
This commit is contained in:
Anton Bannykh
2018-06-15 15:56:47 +03:00
parent 3808d77bf4
commit 43e3314255
25 changed files with 33 additions and 26 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
fun box(): String {
main(array())
return "OK"
@@ -1,5 +1,4 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JS_IR
inline class UInt(val u: Int) {
override fun toString(): String {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
inline fun <reified T> isNullable() = null is T
fun box(): String =
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
class Wrapper<T>(var x: T)
inline fun <reified T> change(w: Wrapper<T>, x: Any?) {
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
package test
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
// LANGUAGE_VERSION: 1.2
// SKIP_INLINE_CHECK_IN: inlineFun$default
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// FILE: 1.kt
// LANGUAGE_VERSION: 1.2
// SKIP_INLINE_CHECK_IN: inlineFun$default