Kapt: Fix "no interface expected here" in class implementing interface with secondary constructor (KT-27506)

This commit is contained in:
Yan Zhulanow
2019-02-05 21:51:51 +03:00
parent a9eaf1c345
commit 87cad2af02
5 changed files with 94 additions and 24 deletions
@@ -0,0 +1,37 @@
package secondary;
import java.lang.System;
@kotlin.Metadata()
public abstract interface Named {
@org.jetbrains.annotations.Nullable()
public abstract java.lang.String getName();
}
////////////////////
package secondary;
import java.lang.System;
@kotlin.Metadata()
public final class Product2 implements secondary.Named {
@org.jetbrains.annotations.Nullable()
private java.lang.String name;
@org.jetbrains.annotations.Nullable()
@java.lang.Override()
public java.lang.String getName() {
return null;
}
public void setName(@org.jetbrains.annotations.Nullable()
java.lang.String p0) {
}
public Product2(@org.jetbrains.annotations.NotNull()
java.lang.String otherName) {
super();
}
}