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

Exclude unit value as literal type #9183

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

som-snytt
Copy link
Contributor

No description provided.

@scala-jenkins scala-jenkins added this to the 2.13.4 milestone Aug 28, 2020
case _: ().type => "err"
^
sip23-no-unit-type.scala:7: error: '=>' expected but '.' found.
case _: ().type => "err"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems odd to me to have this error after the previous error

Copy link
Contributor Author

@som-snytt som-snytt Aug 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

me too, it's due to the ad hoc fix.

Edit: since you mention it, the bigger problem is that if you follow the advice, you get Unit.type, ha ha.

Copy link
Member

@dwijnand dwijnand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We stand unit-ed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants