jvm-abi-gen: Remove WhenMapping classes from ABI if possible
This commit is contained in:
committed by
Alexander Udalov
parent
ec4d7b2bb6
commit
19660f11a7
@@ -0,0 +1,5 @@
|
||||
package app
|
||||
|
||||
import lib.*
|
||||
|
||||
fun runAppAndReturnOk(): String = value(E.A)
|
||||
@@ -0,0 +1 @@
|
||||
// IGNORE_BACKEND_LEGACY: JVM
|
||||
@@ -0,0 +1,10 @@
|
||||
package lib
|
||||
|
||||
enum class E {
|
||||
A, B
|
||||
}
|
||||
|
||||
inline fun value(x: E) = when (x) {
|
||||
E.A -> "OK"
|
||||
E.B -> "Fail"
|
||||
}
|
||||
Reference in New Issue
Block a user