You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -96,11 +97,16 @@ internal open class GenericType(protected val mostSpecificType: JavaType, protec
96
97
}
97
98
isClass<*> ->if (type.isPrimitive) Primitives.wrap(type) else type
98
99
isTypeVariable<*> -> {
99
-
if (declaringType !isParameterizedType) {
100
-
error("Could not resolve type variable '${TypeUtils.toLongString(type)}' because declaring type is not parameterized: ${TypeUtils.toString(declaringType)}")
?: error("No type variable found for: ${TypeUtils.toLongString(type)}"))
103
+
} else {
104
+
val raw =TypeUtils.getRawType(type, declaringType)
105
+
if (raw !=null) {
106
+
unwrapGenericType(raw)
107
+
} else {
108
+
error("Could not resolve type variable '${TypeUtils.toLongString(type)}' because declaring type is not parameterized: ${TypeUtils.toString(declaringType)}")
0 commit comments