[K1] Fix string offsets to include quotes in the same way it's done in FIR
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: WASM
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
infix fun String.execute(p: String) = this + p
|
||||
@@ -50,7 +50,7 @@ fun fail() : String {
|
||||
// EXPECTATIONS WASM
|
||||
// test.kt:1 $box
|
||||
// test.kt:7 $box (4, 4, 4)
|
||||
// test.kt:15 $box (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:15 $box (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// String.kt:141 $kotlin.stringLiteral (17, 28, 17, 17, 28, 17, 17, 28, 17, 17, 28, 17)
|
||||
// Array.kt:59 $kotlin.Array.get (19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8, 19, 26, 34, 8)
|
||||
// ThrowHelpers.kt:29 $kotlin.wasm.internal.rangeCheck (6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19, 6, 14, 6, 19, 28, 19)
|
||||
@@ -65,7 +65,7 @@ fun fail() : String {
|
||||
// Array.kt:76 $kotlin.Array.set (5, 5)
|
||||
// String.kt:149 $kotlin.stringLiteral (11, 4, 11, 4)
|
||||
// test.kt:8 $box
|
||||
// test.kt:19 $fail (12, 12, 12, 12, 4, 12, 12, 12, 12, 4)
|
||||
// test.kt:19 $fail (11, 11, 11, 11, 4, 11, 11, 11, 11, 4)
|
||||
// test.kt:4 $execute (38, 45, 38, 46, 38, 45, 38, 46)
|
||||
// String.kt:28 $kotlin.String.plus (20, 26, 8, 20, 26, 8)
|
||||
// Library.kt:19 $kotlin.toString (37, 37, 43, 43, 43, 37, 37, 63, 37, 37, 43, 43, 43, 37, 37, 63)
|
||||
|
||||
Reference in New Issue
Block a user