ensure enum constants resolved inside enum class

EA-83687 - assert: PsiEnumConstantImpl.resolveMethodGenerics
This commit is contained in:
Anna.Kozlova
2017-02-17 19:37:21 +01:00
parent 65ca530d2d
commit 27ca3fe565
4 changed files with 23 additions and 6 deletions
@@ -0,0 +1,14 @@
import java.util.function.Function;
interface Demo {
enum X {
A( key -> (<warning descr="Casting 'key.toString()' to 'String' is redundant">String</warning>) key.toString());
X(Function<String, Object> function) {
// ...
}
}
}