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

K2 | Add support for data types inherited from extended interface #740

Closed
Lavmee opened this issue Sep 6, 2024 · 0 comments · Fixed by #741
Closed

K2 | Add support for data types inherited from extended interface #740

Lavmee opened this issue Sep 6, 2024 · 0 comments · Fixed by #741

Comments

@Lavmee
Copy link
Contributor

Lavmee commented Sep 6, 2024

Currently, types inherited extended interface are not properly generated.

A small example:

interface A { name : String }

type Example implements A {
    name: String
}

extend interface A {
    age: Int
}

extend type Example {
    age: Int
}

generates the following kotlin class with no override original interface fields (generated interface is correct):

public class Example(
 ...
) : A {

  val name: String
    get() = __name.invoke()

  override val age: Int
    get() = __age.invoke()
...
}
@Lavmee Lavmee changed the title Add support for data types inherited from extended interface K2 | Add support for data types inherited from extended interface Sep 13, 2024
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.

1 participant