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

Unit members of unions have invalid TypedNode rendering #1599

Closed
kubukoz opened this issue Sep 28, 2024 · 0 comments · Fixed by #1600
Closed

Unit members of unions have invalid TypedNode rendering #1599

kubukoz opened this issue Sep 28, 2024 · 0 comments · Fixed by #1600
Assignees
Labels
AWS support Issues related to AWS support

Comments

@kubukoz
Copy link
Member

kubukoz commented Sep 28, 2024

To reproduce, generate and compile the code for:

$version: "2"

namespace demo

@trait
union aaa {
    u: Unit
    s: String
}

@aaa(u: {

})
string Hello

The error:

[error] ./demo/Hello.scala:13:5
[error] object UCase in object Aaa does not take parameters
[error]     demo.Aaa.UCase(()).widen,
[error]     ^^^^^^^^^^^^^^

The actual signature of UCase is case object UCase, indeed with no parameters.

This has been discovered in the latest spec for SNS, in one of the smoke test traits.

@kubukoz kubukoz added the AWS support Issues related to AWS support label Sep 28, 2024
kubukoz added a commit that referenced this issue Sep 28, 2024
@kubukoz kubukoz self-assigned this Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AWS support Issues related to AWS support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant