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
This commit is contained in:
Alexander Udalov
2014-09-10 14:37:31 +04:00
parent d4b1797646
commit 70561cc539
4 changed files with 32 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
package test;
class EnumAutoGeneratedMethods {
void foo() {
TestEnum.values();
assert TestEnum.valueOf("first") == TestEnum.first;
}
}