Kapt: Parse generic signatures with inner class types correctly
This commit is contained in:
committed by
Yan Zhulanow
parent
5f3c1dfc41
commit
142496c00f
@@ -0,0 +1,16 @@
|
||||
class Test {
|
||||
private var a = FilterValueDelegate<Float>()
|
||||
private inner class FilterValueDelegate<T>
|
||||
}
|
||||
|
||||
class Test2 {
|
||||
inner class FilterValueDelegate<T> {
|
||||
private var a = Filter2<String>()
|
||||
inner class Filter2<X>
|
||||
}
|
||||
}
|
||||
|
||||
class Test3 {
|
||||
private var a = FilterValueDelegate<Float>()
|
||||
private class FilterValueDelegate<T>
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
public final class Test {
|
||||
private Test.FilterValueDelegate<java.lang.Float> a;
|
||||
|
||||
public Test() {
|
||||
super();
|
||||
}
|
||||
|
||||
private final class FilterValueDelegate<T extends java.lang.Object> {
|
||||
|
||||
public FilterValueDelegate() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
public final class Test2 {
|
||||
|
||||
public Test2() {
|
||||
super();
|
||||
}
|
||||
|
||||
public final class FilterValueDelegate<T extends java.lang.Object> {
|
||||
private Test2.FilterValueDelegate<T>.Filter2<java.lang.String> a;
|
||||
|
||||
public FilterValueDelegate() {
|
||||
super();
|
||||
}
|
||||
|
||||
public final class Filter2<X extends java.lang.Object> {
|
||||
|
||||
public Filter2() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
public final class Test3 {
|
||||
private Test3.FilterValueDelegate<java.lang.Float> a;
|
||||
|
||||
public Test3() {
|
||||
super();
|
||||
}
|
||||
|
||||
private static final class FilterValueDelegate<T extends java.lang.Object> {
|
||||
|
||||
public FilterValueDelegate() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user