Skip to content

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

Open
@tevjef

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

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