Files
kotlin-fork/compiler/testData/codegen/boxInline/smap/oneFile.kt
T
Alexander Udalov f7958edf21 Improve test data format for SMAP codegen tests
Instead of comments in a Kotlin source file, add a .smap with the contents of
the source mapping data (and possible comments)
2016-02-27 15:40:06 +03:00

36 lines
338 B
Kotlin
Vendored

// FILE: 1.kt
package zzz
inline fun nothing() {}
// FILE: 2.kt
fun box(): String {
return test {
"K"
}
}
inline fun test(p: () -> String): String {
var pd = ""
pd = "O"
return pd + p()
}
// FILE: 1.smap
// FILE: 2.smap
//TODO should be empty
SMAP
2.kt
Kotlin
*S Kotlin
*F
+ 1 2.kt
_2Kt
*L
1#1,15:1
*E