Merge pull request #10283 from igfoo/igfoo/IrTypeParameter

Kotlin: Remove a redundant cast
This commit is contained in:
Ian Lynagh
2022-09-05 11:49:00 +01:00
committed by GitHub

View File

@@ -709,7 +709,7 @@ open class KotlinUsesExtractor(
return useSimpleTypeClass(owner, args, s.hasQuestionMark)
}
owner is IrTypeParameter -> {
val javaResult = useTypeParameter(owner as IrTypeParameter)
val javaResult = useTypeParameter(owner)
val aClassId = makeClass("kotlin", "TypeParam") // TODO: Wrong
val kotlinResult = if (true) TypeResult(fakeKotlinType(), "TODO", "TODO") else
if (s.hasQuestionMark) {