Files
kotlin-fork/plugins/kapt3/testData/converter/defaultImpls.txt
T
Yan Zhulanow e4158a5571 Kapt3: Number of bugfixes in JCTreeConverter:
Convert Java primitive and array types properly.
Enums: ignore first two synthetic constructor parameters, do not generate super class constructor call, add ACC_ENUM flag to enum values, do not generate "values" and "valueOf" methods.
Provide a JavaFileObject for JCCompilationUnit.
Handle DefaultImpls, ignore empty DefaultImpls classes.
Use a name table from Javac Names.
2016-12-05 19:57:30 +03:00

55 lines
1005 B
Plaintext
Vendored

public abstract interface IntfWithoutDefaultImpls {
}
////////////////////
public abstract interface IntfWithDefaultImpls {
public abstract void a();
public static final class DefaultImpls {
public DefaultImpls() {
super();
}
public static void a(IntfWithDefaultImpls $this) {
}
}
}
////////////////////
public abstract interface Intf {
public static final Intf.Companion Companion = null;
public static final int WHITE = 2;
public abstract int getColor();
public static final class DefaultImpls {
public DefaultImpls() {
super();
}
public static int getColor(Intf $this) {
return 0;
}
}
public static final class Companion {
private static final int BLACK = 1;
public static final int WHITE = 2;
public final int getBLACK() {
return 0;
}
private Companion() {
super();
}
}
}