Don't try to transform sam wrappers in same module

#KT-22304 Fixed
This commit is contained in:
Mikhael Bogdanov
2018-03-07 12:34:45 +01:00
parent 2a6f1d7731
commit c1c8660e55
15 changed files with 110 additions and 7 deletions
@@ -0,0 +1,26 @@
// FILE: 1.kt
// FULL_JDK
package test
import java.util.concurrent.Callable
fun test(): String = ""
inline fun String.switchMapOnce(crossinline mapper: (String) -> String): String {
Callable(::test)
return { mapper(this) }()
}
// FILE: 2.kt
import test.*
fun box() : String {
return "O".switchMapOnce {
"K".switchMapOnce {
"OK"
}
}
}