jvm-abi-gen: Remove WhenMapping classes from ABI if possible

This commit is contained in:
Steven Schäfer
2021-08-18 15:25:41 +02:00
committed by Alexander Udalov
parent ec4d7b2bb6
commit 19660f11a7
15 changed files with 124 additions and 1 deletions
@@ -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"
}