Kapt: Substitute type parameters from the actual type, not from the anonymous one (KT-19700)
This commit is contained in:
committed by
Yan Zhulanow
parent
4e4291c586
commit
4d9a612a64
+11
@@ -0,0 +1,11 @@
|
||||
package test
|
||||
|
||||
class Test<T : CharSequence, N : Number> {
|
||||
private val x = object : ListUpdateCallback {
|
||||
override fun onInserted(position: Int, count: Int) {}
|
||||
}
|
||||
}
|
||||
|
||||
interface ListUpdateCallback {
|
||||
fun onInserted(position: Int, count: Int)
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public abstract interface ListUpdateCallback {
|
||||
|
||||
public abstract void onInserted(int position, int count);
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
package test;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Test<T extends java.lang.CharSequence, N extends java.lang.Number> {
|
||||
private final test.ListUpdateCallback x = null;
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user