Fix for KT-6552 IllegalAccessError in inline function with "when" over enum across modules

#KT-6552 Fixed
This commit is contained in:
Michael Bogdanov
2015-10-29 11:27:53 +03:00
parent 9e5af43ce1
commit 33bf314518
5 changed files with 26 additions and 1 deletions
@@ -0,0 +1,5 @@
import test.*
fun box(): String {
return switch(X.A) + switch(X.B)
}
@@ -0,0 +1,8 @@
package test
public enum class X { A, B }
public inline fun switch(x: X): String = when (x) {
X.A -> "O"
X.B -> "K"
}