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

remove unused generics/phantomdata in generated code #132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Pesky01
Copy link
Contributor

@Pesky01 Pesky01 commented Jul 2, 2023

Was running into #92 when generating some definitions. Only implemented for named field structs (is PhantomData used elsewhere?). I'm not familiar with Kotlin/Scala so wasn't sure what the generated code should look like for the tests (Swift/TS pass).

Rust: struct UnusedGenericsEmptyStruct<A, B, C> {}
Kotlin generates: object UnusedGenericsEmptyStruct instead of data class UnusedGenericsEmptyStruct()
Scala generates: class UnusedGenericsEmptyStruct extends Serializable instead of case class UnusedGenericsEmptyStruct()

Are these right? (Tests don't pass for Kotlin/Scala right now due to above)
Can update tests to what the expected gen should be and fix any issues.

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 this pull request may close these issues.

1 participant