[K/JS] Use declared upper-bound types for parameters inside inlined functions body, instead of the provided types

This commit is contained in:
Artem Kobzar
2023-06-20 12:01:28 +00:00
committed by Space Team
parent aa4ebe1991
commit 039b5fca7a
38 changed files with 269 additions and 53 deletions
+1
View File
@@ -81,6 +81,7 @@ fun box() {
// a.kt:6 exclamate: s="Jesse":kotlin.String
// test.kt:52 box: jesse="Jesse":kotlin.String, walter1="Walter!":kotlin.String, jesse1="Jesse!":kotlin.String
// a.kt:6 exclamate: s="Jesse!":kotlin.String
// a.kt:19 box: jesse="Jesse":kotlin.String, walter1="Walter!":kotlin.String, jesse1="Jesse!":kotlin.String
// a.kt:22 value:
// test.kt:63 box: jesse="Jesse":kotlin.String, walter1="Walter!":kotlin.String, jesse1="Jesse!":kotlin.String
// test.kt:59 localFun: hello="hello":kotlin.String, world="world":kotlin.String
+1
View File
@@ -47,6 +47,7 @@ fun box(): String {
// test.kt:30 box
// EXPECTATIONS JS_IR
// test.kt:16 box
// test.kt:17 box
// test.kt:7 box
// test.kt:30 box
@@ -25,4 +25,4 @@ inline fun bar(i: Int = 1) {
// EXPECTATIONS JS_IR
// test.kt:4 box
// test.kt:9 foo
// test.kt:6 box
// test.kt:6 box
@@ -22,6 +22,6 @@ fun g() {}
// EXPECTATIONS JS_IR
// test.kt:3 box
// test.kt:8 box
// test.kt:4 box
// test.kt:11 g
// test.kt:5 box