Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ksp2] ksType.arguments will crash on a typealias's java wildcard type #2265

Closed
acejingbo opened this issue Dec 24, 2024 · 0 comments · Fixed by #2304
Closed

[ksp2] ksType.arguments will crash on a typealias's java wildcard type #2265

acejingbo opened this issue Dec 24, 2024 · 0 comments · Fixed by #2304
Milestone

Comments

@acejingbo
Copy link

ksType.arguments will crash on a typealias's java wildcard type

org.jetbrains.kotlin.utils.exceptions.KotlinIllegalStateExceptionWithAttachments: Unexpected number of type parameters
	at app//org.jetbrains.kotlin.analysis.api.fir.types.qualifiers.UsualClassTypeQualifierBuilder.buildQualifiers(UsualClassTypeQualifierBuilder.kt:142)
	at app//org.jetbrains.kotlin.analysis.api.fir.types.KaFirFunctionType.getQualifiers(KaFirFunctionType.kt:48)
	at app//com.google.devtools.ksp.impl.symbol.kotlin.UtilKt.typeArguments(util.kt:449)
	at app//com.google.devtools.ksp.impl.symbol.kotlin.KSTypeImpl$arguments$2.invoke(KSTypeImpl.kt:87)
	at app//com.google.devtools.ksp.impl.symbol.kotlin.KSTypeImpl$arguments$2.invoke(KSTypeImpl.kt:80)
	at app//kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:83)
	at app//com.google.devtools.ksp.impl.symbol.kotlin.KSTypeImpl.getArguments(KSTypeImpl.kt:80)

Repro

acejingbo@2312016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants