Support when mapping transformation on inlining
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
package test
|
||||
|
||||
enum class X {
|
||||
A,
|
||||
B
|
||||
}
|
||||
|
||||
inline fun test(e: X): String {
|
||||
return when(e) {
|
||||
X.A-> "O"
|
||||
X.B-> "K"
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
import test.*
|
||||
|
||||
fun box(): String {
|
||||
return test(X.A) + test(X.B)
|
||||
}
|
||||
Reference in New Issue
Block a user