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

Incorrectly generated code using a typealias as a type paramter. #8

Open
tevjef opened this issue Aug 3, 2022 · 2 comments
Open

Incorrectly generated code using a typealias as a type paramter. #8

tevjef opened this issue Aug 3, 2022 · 2 comments
Labels
blocked bug Something isn't working

Comments

@tevjef
Copy link

tevjef commented Aug 3, 2022

Invalid code is generated when an interface uses a typealias as a type paramter.

typealias SomeTypeAlias = TypeA<out TypeB>

@GenerateMutableModel
interface UiState {
    val list: List<SomeTypeAlias>
}

Generated code

public fun MutableUiState(
    list: List<SomeTypeAlias<out TypeB>>
)

Expected

public fun MutableUiState(
    list: List<SomeTypeAlias>
)
@PatilShreyas
Copy link
Owner

Thanks for reporting this @tevjef

@PatilShreyas PatilShreyas added the bug Something isn't working label Aug 6, 2022
@PatilShreyas
Copy link
Owner

This is already a reported bug at KSP: google/ksp#1011. Once this is officially fixed, we can fix here too. Till the time, this is blocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants