mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Properly process default lambda source mapping
#KT-21827 Fixed
(cherry picked from commit 3513f1a)
This commit is contained in:
15
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt
vendored
Normal file
15
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// FILE: 1.kt
|
||||
// SKIP_INLINE_CHECK_IN: bar$default
|
||||
package test
|
||||
|
||||
inline fun bar(f: () -> String = { "OK" }) = f()
|
||||
// FILE: 2.kt
|
||||
|
||||
import test.*
|
||||
// SKIP_INLINE_CHECK_IN: foo$default
|
||||
inline fun foo(f: () -> String = { bar() }) = f()
|
||||
|
||||
fun box(): String {
|
||||
return foo()
|
||||
}
|
||||
|
||||
42
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt
vendored
Normal file
42
compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/kt21827.kt
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
// FILE: 1.kt
|
||||
// SKIP_INLINE_CHECK_IN: lParams$default
|
||||
package test
|
||||
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
//A lot of blank lines [Don't delete]
|
||||
|
||||
|
||||
inline fun lParams(initParams: () -> String = { "OK" }): String {
|
||||
return initParams()
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
return run {
|
||||
lParams()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user