mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
In this mode, javac AST and Symbol files are used during Kotlin compilation instead of PSI / binary stuff. Later, they are reused for Java file compilation. javac in this mode is integrated into kotlinc.
26 lines
360 B
Java
Vendored
26 lines
360 B
Java
Vendored
package test;
|
|
|
|
public class Inheritance extends AbstractInheritance { }
|
|
|
|
abstract class AbstractInheritance implements Interface {
|
|
|
|
@Override public int getAnswer() { return 42; }
|
|
|
|
}
|
|
|
|
interface Interface extends I {
|
|
@Override
|
|
int getAnswer();
|
|
}
|
|
|
|
interface I {
|
|
int getAnswer();
|
|
}
|
|
|
|
interface I2 extends I {
|
|
|
|
@Override
|
|
int getAnswer();
|
|
|
|
}
|