[JS BEs] Generate tests for whole "codegen/boxInline"

This commit is contained in:
Zalim Bashorov
2020-03-10 21:59:46 +03:00
parent fe3a81ebc9
commit 179ec41a6b
71 changed files with 7721 additions and 4213 deletions
@@ -1,3 +1,5 @@
// TODO: inliner doesn't fix usesite of local object (likely for any local inlined class)
// IGNORE_BACKEND: JS_IR
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
@@ -1,5 +1,6 @@
// NO_CHECK_LAMBDA_INLINING
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// FILE: 1.kt
package test
+1 -1
View File
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: NATIVE
// TARGET_BACKEND: JVM
// FILE: 1.kt
package test
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: 1.kt
// FULL_JDK
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
package test
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
package test
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
package test
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
package test
@@ -13,26 +13,26 @@ import test.*
fun box(): String {
var invokeOrder = "";
val expectedResult = "1.0_0_1_9"
val expectedResult = "1.4_0_1_9"
val expectedInvokeOrder = "1_0_9"
var l = 1L
var i = 0
val captured = 9L
var result = 1.0.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "$captured"; "$captured"})
var result = 1.4.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "$captured"; "$captured"})
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 1: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "${captured}"; "${captured}"}, a = {invokeOrder+="0_"; i}())
result = 1.4.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "${captured}"; "${captured}"}, a = {invokeOrder+="0_"; i}())
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 2: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
result = 1.4.test(c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 3: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}())
result = 1.4.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "${captured}"; "${captured}"}, b = {invokeOrder += "1_"; l}())
if (invokeOrder != "0_1_9" || result != expectedResult) return "fail 4: $invokeOrder != 0_1_9 or $result != $expectedResult"
return "OK"
@@ -1,7 +1,10 @@
// !LANGUAGE: -NewInference
// IGNORE_BACKEND: JS
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
package test
open class A(val value: String)
@@ -13,26 +13,26 @@ import test.*
fun box(): String {
var invokeOrder = "";
val expectedResult = "1.0_0_1_L"
val expectedResult = "1.9_0_1_L"
val expectedInvokeOrder = "1_0_L"
var l = 1L
var i = 0
var result = 1.0.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"})
var result = 1.9.test(b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"})
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 1: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "L"; "L"}, a = {invokeOrder+="0_"; i}())
result = 1.9.test(b = {invokeOrder += "1_"; l}(), c = {invokeOrder += "L"; "L"}, a = {invokeOrder+="0_"; i}())
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 2: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
result = 1.9.test(c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}(), a = {invokeOrder+="0_"; i}())
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 3: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}())
result = 1.9.test(a = {invokeOrder+="0_"; i}(), c = {invokeOrder += "L"; "L"}, b = {invokeOrder += "1_"; l}())
if (invokeOrder != "0_1_L" || result != expectedResult) return "fail 4: $invokeOrder != 0_1_L or $result != $expectedResult"
return "OK"
@@ -16,26 +16,26 @@ import test.*
fun box(): String {
with (Z()) {
var invokeOrder = "";
val expectedResult = "1.0_0_1_L"
val expectedResult = "1.9_0_1_L"
val expectedInvokeOrder = "1_0_L"
var l = 1L
var i = 0
var result = 1.0.test(b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" })
var result = 1.9.test(b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" })
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 1: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(b = { invokeOrder += "1_"; l }(), c = { invokeOrder += "L"; "L" }, a = { invokeOrder += "0_"; i }())
result = 1.9.test(b = { invokeOrder += "1_"; l }(), c = { invokeOrder += "L"; "L" }, a = { invokeOrder += "0_"; i }())
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 2: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }())
result = 1.9.test(c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }(), a = { invokeOrder += "0_"; i }())
if (invokeOrder != expectedInvokeOrder || result != expectedResult) return "fail 3: $invokeOrder != $expectedInvokeOrder or $result != $expectedResult"
invokeOrder = "";
result = 1.0.test(a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }())
result = 1.9.test(a = { invokeOrder += "0_"; i }(), c = { invokeOrder += "L"; "L" }, b = { invokeOrder += "1_"; l }())
if (invokeOrder != "0_1_L" || result != expectedResult) return "fail 4: $invokeOrder != 0_1_L or $result != $expectedResult"
}
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
@@ -1,9 +1,11 @@
// !LANGUAGE: -NewInference
// IGNORE_BACKEND: JVM_IR
// IGNORE_BACKEND: JS, JS_IR
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// NO_CHECK_LAMBDA_INLINING
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// IGNORE_BACKEND: NATIVE
package test
@@ -1,3 +1,4 @@
// TARGET_BACKEND: JVM
// FILE: inline.kt
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
// WITH_RUNTIME
@@ -1,4 +1,5 @@
// Not a multi-module test.
// TARGET_BACKEND: JVM
// IGNORE_BACKEND_MULTI_MODULE: JVM, JVM_IR
// FILE: A.kt
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
@@ -15,68 +15,68 @@ fun testAll(): String {
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun testAllWithCapturedVal(): String {
val inlineX = InlineAll()
val c1 = 21
val c2 = 22.0
val c3 = 23.0
val c2 = 22.9
val c3 = 23.9
val c4 = "24"
val c5 = 25.toLong()
val c6 = 'H'
val c7 = 26.toByte()
val c8 = 27.toShort()
val c9 = 28.toFloat()
val c9 = 28.toFloat() + 0.3
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun testAllWithCapturedVar(): String {
val inlineX = InlineAll()
var c1 = 21
var c2 = 22.0
var c3 = 23.0
var c2 = 22.9
var c3 = 23.9
var c4 = "24"
var c5 = 25.toLong()
var c6 = 'H'
var c7 = 26.toByte()
var c8 = 27.toShort()
val c9 = 28.toFloat()
val c9 = 28.toFloat() + 0.3
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun testAllWithCapturedValAndVar(): String {
val inlineX = InlineAll()
var c1 = 21
var c2 = 22.0
val c3 = 23.0
var c2 = 22.9
val c3 = 23.9
val c4 = "24"
var c5 = 25.toLong()
val c6 = 'H'
var c7 = 26.toByte()
var c8 = 27.toShort()
val c9 = 28.toFloat()
val c9 = 28.toFloat() + 0.3
return inlineX.inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun box(): String {
if (testAll() != "112.013.01415") return "testAll: ${testAll()}"
if (testAllWithCapturedVal() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
if (testAllWithCapturedVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
if (testAllWithCapturedValAndVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
if (testAll() != "112.913.91415") return "testAll: ${testAll()}"
if (testAllWithCapturedVal() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
if (testAllWithCapturedVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
if (testAllWithCapturedValAndVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
return "OK"
}
@@ -10,62 +10,62 @@ inline fun inline(s: (Int, Double, Double, String, Long) -> String,
fun testAll(): String {
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun testAllWithCapturedVal(): String {
val c1 = 21
val c2 = 22.0
val c3 = 23.0
val c2 = 22.9
val c3 = 23.9
val c4 = "24"
val c5 = 25.toLong()
val c6 = 'H'
val c7 = 26.toByte()
val c8 = 27.toShort()
val c9 = 28.toFloat()
val c9 = 28.toFloat() + 0.3
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun testAllWithCapturedVar(): String {
var c1 = 21
var c2 = 22.0
var c3 = 23.0
var c2 = 22.9
var c3 = 23.9
var c4 = "24"
var c5 = 25.toLong()
var c6 = 'H'
var c7 = 26.toByte()
var c8 = 27.toShort()
val c9 = 28.toFloat()
val c9 = 28.toFloat() + 0.3
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun testAllWithCapturedValAndVar(): String {
var c1 = 21
var c2 = 22.0
val c3 = 23.0
var c2 = 22.9
val c3 = 23.9
val c4 = "24"
var c5 = 25.toLong()
val c6 = 'H'
var c7 = 26.toByte()
var c8 = 27.toShort()
val c9 = 28.toFloat()
val c9 = 28.toFloat() + 0.3
return inline({ a1: Int, a2: Double, a3: Double, a4: String, a5: Long ->
"" + a1 + a2 + a3 + a4 + a5 + c1 + c2 + c3 + c4 + c5 + c6 + c7 + c8 + c9},
1, 12.0, 13.0, "14", 15)
1, 12.9, 13.9, "14", 15)
}
fun box(): String {
if (testAll() != "112.013.01415") return "testAll: ${testAll()}"
if (testAllWithCapturedVal() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
if (testAllWithCapturedVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
if (testAllWithCapturedValAndVar() != "112.013.014152122.023.02425H262728.0") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
if (testAll() != "112.913.91415") return "testAll: ${testAll()}"
if (testAllWithCapturedVal() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedVal()}"
if (testAllWithCapturedVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVar: ${testAllWithCapturedVar()}"
if (testAllWithCapturedValAndVar() != "112.913.914152122.923.92425H262728.3") return "testAllWithCapturedVal: ${testAllWithCapturedValAndVar()}"
return "OK"
}
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
package test
object ContentTypeByExtension {
@@ -1,4 +1,4 @@
// IGNORE_BACKEND: NATIVE
// TARGET_BACKEND: JVM
// FILE: 1.kt
// WITH_RUNTIME
package test
@@ -1,5 +1,8 @@
// !LANGUAGE: +MultiPlatformProjects
// NO_CHECK_LAMBDA_INLINING
// TODO: replace all references on expected declarations and their members to actuals,
// otherwise DCE keeps members of expect D referenced from lambdas in default arguments instead of members of actual D
// IGNORE_BACKEND: JS, JS_IR
// FILE: 1.kt
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
// WITH_RUNTIME
package test
@@ -42,9 +43,6 @@ inline fun failClassCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
throw e
}
catch (e: ClassCastException) {
}
@@ -1,3 +1,5 @@
// TODO: Reified generics required some design to unify behavior across all backends
// IGNORE_BACKEND: JS, JS_IR
// FILE: 1.kt
// WITH_RUNTIME
package test
@@ -34,22 +34,10 @@ fun box(): String {
return "OK"
}
inline fun failTypeCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
}
}
inline fun failClassCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
throw e
}
catch (e: ClassCastException) {
}
@@ -1,3 +1,5 @@
// TODO: Reified generics required some design to unify behavior across all backends
// IGNORE_BACKEND: JS, JS_IR
// FILE: 1.kt
// WITH_RUNTIME
package test
@@ -47,9 +49,6 @@ inline fun failClassCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
throw e
}
catch (e: ClassCastException) {
// OK
}
@@ -34,22 +34,10 @@ fun box(): String {
return "OK"
}
inline fun failTypeCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
}
}
inline fun failClassCast(s: () -> Unit) {
try {
s()
}
catch (e: TypeCastException) {
throw e
}
catch (e: ClassCastException) {
}
@@ -1,4 +1,5 @@
// !API_VERSION: 1.3
// TARGET_BACKEND: JVM
// FILE: 1.kt
// WITH_RUNTIME
package test
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
package test
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_REFLECT
// IGNORE_BACKEND: JS, JS_IR
package foo
+1
View File
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
package test
+1
View File
@@ -1,4 +1,5 @@
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
// FILE: 1.kt
package test
+1
View File
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
package test
inline fun doSmth(vararg a: String) : String {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
// SKIP_INLINE_CHECK_IN: lParams$default
@@ -52,8 +53,8 @@ Kotlin
+ 1 1.kt
test/_1Kt
*L
1#1,39:1
35#1,2:40
1#1,40:1
36#1,2:41
*E
SMAP
@@ -66,15 +67,15 @@ test/_1Kt$lParams$1
+ 2 1.kt
test/_1Kt
*L
1#1,39:1
30#2:40
1#1,40:1
31#2:41
*E
*S KotlinDebug
*F
+ 1 1.kt
test/_1Kt$lParams$1
*L
33#1:40
34#1:41
*E
SMAP
@@ -87,8 +88,8 @@ test/_1Kt$kValue$1
+ 2 1.kt
test/_1Kt$lParams$1
*L
1#1,39:1
33#2:40
1#1,40:1
34#2:41
*E
SMAP
@@ -99,7 +100,7 @@ Kotlin
+ 1 1.kt
test/_1Kt$kValue$1
*L
1#1,39:1
1#1,40:1
*E
// FILE: 2.smap-nonseparate-compilation
@@ -117,9 +118,9 @@ test/_1Kt
test/_1Kt$lParams$1
*L
1#1,8:1
32#2,5:9
30#2:15
33#3:14
33#2,5:9
31#2:15
34#3:14
*E
*S KotlinDebug
*F
@@ -146,9 +147,9 @@ test/_1Kt
test/_1Kt$lParams$1
*L
1#1,8:1
32#2,5:9
30#2:15
33#3:14
33#2,5:9
31#2:15
34#3:14
*E
*S KotlinDebug
*F
@@ -170,6 +171,6 @@ test/_1Kt$kValue$1
+ 2 1.kt
test/_1Kt$lParams$1
*L
1#1,39:1
33#2:40
1#1,40:1
34#2:41
*E
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// IGNORE_BACKEND_MULTI_MODULE: JVM_IR
// FILE: 1.kt
// SKIP_INLINE_CHECK_IN: lParams$default
@@ -54,8 +55,8 @@ Kotlin
+ 1 1.kt
test/_1Kt
*L
1#1,39:1
35#1,2:40
1#1,40:1
36#1,2:41
*E
SMAP
@@ -68,15 +69,15 @@ test/_1Kt$lParams$1
+ 2 1.kt
test/_1Kt
*L
1#1,39:1
30#2:40
1#1,40:1
31#2:41
*E
*S KotlinDebug
*F
+ 1 1.kt
test/_1Kt$lParams$1
*L
33#1:40
34#1:41
*E
SMAP
@@ -89,8 +90,8 @@ test/_1Kt$kValue$1
+ 2 1.kt
test/_1Kt$lParams$1
*L
1#1,39:1
33#2:40
1#1,40:1
34#2:41
*E
SMAP
@@ -101,7 +102,7 @@ Kotlin
+ 1 1.kt
test/_1Kt$kValue$1
*L
1#1,39:1
1#1,40:1
*E
// FILE: 2.smap-nonseparate-compilation
@@ -119,9 +120,9 @@ test/_1Kt
test/_1Kt$lParams$1
*L
1#1,10:1
32#2,5:11
30#2:17
33#3:16
33#2,5:11
31#2:17
34#3:16
*E
*S KotlinDebug
*F
@@ -147,9 +148,9 @@ test/_1Kt
test/_1Kt$lParams$1
*L
1#1,10:1
32#2,5:11
30#2:17
33#3:16
33#2,5:11
31#2:17
34#3:16
*E
*S KotlinDebug
*F
@@ -171,6 +172,6 @@ test/_1Kt$kValue$1
+ 2 1.kt
test/_1Kt$lParams$1
*L
1#1,39:1
33#2:40
1#1,40:1
34#2:41
*E
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
package test
inline fun stub() {
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
inline fun run(f: () -> Unit) = f()
inline fun withAny(f: Any.() -> Unit) = Any().f()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
inline fun run(f: () -> Unit) = f()
inline fun withAny(f: Any.() -> Unit) = Any().f()
@@ -1,3 +1,4 @@
// IGNORE_BACKEND: JS
// FILE: 1.kt
inline fun run(f: () -> Unit) = f()
inline fun withAny(f: Any.() -> Unit) = Any().f()
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class My(val value: Int)
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class My(val value: Int)
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
class My(val value: Int)
@@ -1,5 +1,6 @@
// FILE: 1.kt
// WITH_RUNTIME
// KJS_WITH_FULL_RUNTIME
package test
inline fun inlineFun(vararg constraints: String, receiver: String = "K", init: String.() -> String): String {