[IR] dumpKotlinLike: don't crash when type argument is null
This commit is contained in:
committed by
teamcityserver
parent
dec067af8c
commit
d7bd4240e1
@@ -923,7 +923,7 @@ private class KotlinLikeDumper(val p: Printer, val options: KotlinLikeDumpOption
|
|||||||
repeat(typeArgumentsCount) {
|
repeat(typeArgumentsCount) {
|
||||||
p(it > 0, ",")
|
p(it > 0, ",")
|
||||||
// TODO flag to print type param name?
|
// TODO flag to print type param name?
|
||||||
getTypeArgument(it)!!.printTypeWithNoIndent()
|
getTypeArgument(it)?.printTypeWithNoIndent() ?: p.printWithNoIndent(commentBlock("null"))
|
||||||
}
|
}
|
||||||
p.printWithNoIndent(">")
|
p.printWithNoIndent(">")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user