KT-6349 J2K: Static members of enums should be converted to class object members

#KT-6349 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-03-27 14:03:41 +03:00
parent f19eb20803
commit 5454f7053f
5 changed files with 49 additions and 22 deletions
@@ -0,0 +1,12 @@
public enum TestEnum {
A,
B;
public static TestEnum parse() { return A; }
}
class Go {
void fn() {
TestEnum x = TestEnum.parse();
}
}