mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
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:
@@ -0,0 +1,8 @@
|
||||
package test;
|
||||
|
||||
class EnumAutoGeneratedMethods {
|
||||
void foo() {
|
||||
TestEnum.values();
|
||||
assert TestEnum.valueOf("first") == TestEnum.first;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user