Kapt3: Ensure that field types and method return types are not anonymous (KT-14997)

This commit is contained in:
Yan Zhulanow
2016-11-29 20:50:36 +03:00
committed by Yan Zhulanow
parent 01c76153c7
commit b9a0a4f3db
5 changed files with 107 additions and 11 deletions
+21
View File
@@ -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
View File
@@ -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;
}
}