From 8121c1d3c4735c3329d2bd4bc900593c5a15d666 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Tue, 4 Jul 2017 10:12:42 +0200 Subject: [PATCH] Update test to support js-backend --- .../defaultValues/maskElimination/kt18792.kt | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt index 6003e8bdccd..581b1a3c0c6 100644 --- a/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt +++ b/compiler/testData/codegen/boxInline/defaultValues/maskElimination/kt18792.kt @@ -1,28 +1,22 @@ // FILE: 1.kt //WITH_RUNTIME +// IGNORE_BACKEND: JS, NATIVE package test class SceneContainer2() { - inline fun pushTo(vararg injects: Any, time: A = 0.seconds, transition: B = b) = pushTo(T::class.java, *injects, time = time, transition = transition) - fun pushTo(clazz: Class, vararg injects: Any, time: A = 0.seconds, transition: B = b): T { - return "OK" as T + inline fun pushTo(time: Long = 0.seconds, transition: String = "TR"): String { + return "OK" } } -class B - -val b = B() - -data class A(val x: Int) - -inline val Number.seconds: A get() = A(toInt()) +inline val Number.seconds: Long get() = this.toLong() // FILE: 2.kt import test.* fun box(): String { - return SceneContainer2().pushTo(time = 0.2.seconds) + return SceneContainer2().pushTo(time = 0.2.seconds) }