New J2K: consider that type argument may be null in inference post-processing

This commit is contained in:
Ilya Kirillov
2019-09-16 20:57:31 +03:00
parent 934d491c1c
commit 5d6cf34045
@@ -136,7 +136,7 @@ abstract class ContextCollector(private val resolutionFacade: ResolutionFacade)
is KtClassOrObject -> {
for (entry in expression.superTypeListEntries) {
for (argument in entry.typeReference?.typeElement?.typeArgumentsAsTypes ?: continue) {
argument.toBoundType(OtherTarget)
argument?.toBoundType(OtherTarget)
}
}
val descriptor =