Files
kotlin/idea/testData/kotlinAndJavaChecker/EnumAutoGeneratedMethods.java
Alexander Udalov 70561cc539 Fix resolution of Kotlin enums' values() and valueOf() from Java
Use the code from PsiClassImpl / ClsClassImpl, which for some reason is absent
in AbstractLightClass

 #KT-5591 Fixed
2014-09-11 10:37:45 +04:00

9 lines
160 B
Java

package test;
class EnumAutoGeneratedMethods {
void foo() {
TestEnum.values();
assert TestEnum.valueOf("first") == TestEnum.first;
}
}