Fix for KT-11964: No TABLESWITCH in when on enum bytecode if enum constant is imported

#KT-11964 Fixed
This commit is contained in:
Michael Bogdanov
2016-06-26 19:13:23 +03:00
parent 81ec18e1fc
commit 3b419e8ba3
10 changed files with 31 additions and 8 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ fun test() {
when (x) {
<!INCOMPATIBLE_TYPES!>s<!> -> <!UNUSED_EXPRESSION!>1<!>
<!INCOMPATIBLE_TYPES!>""<!> -> <!UNUSED_EXPRESSION!>1<!>
<!INCOMPATIBLE_TYPES, DUPLICATE_LABEL_IN_WHEN!>""<!> -> <!UNUSED_EXPRESSION!>1<!>
x -> <!UNUSED_EXPRESSION!>1<!>
1 -> <!UNUSED_EXPRESSION!>1<!>
}