Kapt3: Ensure that field types and method return types are not anonymous (KT-14997)
This commit is contained in:
committed by
Yan Zhulanow
parent
01c76153c7
commit
b9a0a4f3db
+21
@@ -0,0 +1,21 @@
|
||||
@file:Suppress("AMBIGUOUS_ANONYMOUS_TYPE_INFERRED")
|
||||
|
||||
open class CrashMe {
|
||||
private val notReally = object : Runnable {
|
||||
override fun run() {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun a() = object : Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
|
||||
fun b() = object : java.io.Serializable, Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
|
||||
fun c() = object : CrashMe(), Runnable {
|
||||
override fun run() {}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
public class CrashMe {
|
||||
private final java.lang.Runnable notReally = null;
|
||||
|
||||
public CrashMe() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
@kotlin.Suppress(names = {"AMBIGUOUS_ANONYMOUS_TYPE_INFERRED"})
|
||||
public final class Kt14997Kt {
|
||||
|
||||
public Kt14997Kt() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static final java.lang.Runnable a() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final java.lang.Runnable b() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final CrashMe c() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user