Files
kotlin-fork/idea/testData/inspectionsLocal/redundantSamConstructor/javaInterfacesHierarchy.1.java
T
Roman Golyshev 46ae6136cb Rewrite RedundantSamConstructorInspection to support more cases
- Now inspection does not rely on synthetic descriptors at all, instead
it uses `SamConversionOracle` and `SamConversionResolver` to detect
if the argument type support SAM conversion
- This transparently considers all language features like
`SAM conversions for kotlin functions`, `Functional interfaces` etc.
- In case of multiple SAM arguments, part of them can be converted only
when `SAM conversion per argument` is enabled
- Fix inspection and nj2k tests that were failing because of better
working inspection
- Rewrite automatically fixes multiple bugs that were present
- ^KT-36367 ^KT-36368 ^KT-36296 ^KT-36395 Fixed
2020-02-19 17:16:17 +03:00

14 lines
203 B
Java
Vendored

interface Base {
void test1();
}
interface Extender extends Base {
@java.lang.Override
default void test1() { test2(); }
void test2();
}
class Taker {
static void take(Base b) {}
}