Skip to content

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

Description

@tevjef

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>
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions