Support top level wildcard types

#EA-73650 Fixed
This commit is contained in:
Denis Zharkov
2016-01-26 12:29:03 +03:00
parent 5b6f7486ce
commit f560799bb7
4 changed files with 33 additions and 0 deletions
@@ -61,6 +61,8 @@ class LazyJavaTypeResolver(
)
else LazyJavaClassifierType(javaType, attr)
is JavaArrayType -> transformArrayType(javaType, attr)
// Top level type can be a wildcard only in case of broken Java code, but we should not fail with exceptions in such cases
is JavaWildcardType -> javaType.bound?.let { transformJavaType(it, attr) } ?: c.module.builtIns.defaultBound
else -> throw UnsupportedOperationException("Unsupported type: " + javaType)
}
}