mutekt
mutekt copied to clipboard
Incorrectly generated code using a typealias as a type paramter.
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>
)
Thanks for reporting this @tevjef
This is already a reported bug at KSP: https://github.com/google/ksp/issues/1011. Once this is officially fixed, we can fix here too. Till the time, this is blocked