Files
kotlin/idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/InterfaceDefaultImpls.java
Pavel V. Talanov bff7ff0c5d Improve heuristic to decide whether we will generate DefaultImpls for interface
This is not accurate, there are some cases when we will generate DefaultImpls class that are not covered:
- Inherited default implementations
- Annotated members

In these cases IDE will report an error when in fact code compiles
What is critical though is to be able to decide whether to build DefaultImpls light classes solely based on psi without triggering stubs calculation
2015-11-10 14:31:11 +03:00

14 lines
483 B
Java
Vendored

import lib.*;
class C {
public static void test(NonAbstractFun i, NonAbstractFunWithExpressionBody i2, NonAbstractProperty i3, NonAbstractPropertyWithBody i4) {
AllAbstract.<error descr="Cannot resolve symbol 'DefaultImpls'">DefaultImpls</error>;
NonAbstractFun.DefaultImpls.f(i);
NonAbstractFunWithExpressionBody.DefaultImpls.f(i2);
NonAbstractProperty.DefaultImpls.getC(i3);
NonAbstractPropertyWithBody.DefaultImpls.getC(i4);
}
}