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

Fail compilation of attempting a 0-arity product extraction #14029

Merged
merged 1 commit into from
Dec 8, 2021

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Dec 2, 2021

It's reasonable to desire this to work, but for now let's just not crash.

It's reasonable to desire this to work, but for now let's just not
crash.

Co-authored-by: Seth Tisue <seth@tisue.net>
-- [E108] Declaration Error: tests/neg/i13960.scala:13:10 --------------------------------------------------------------
13 | case A() => // error
| ^^^
| A is not a valid result type of an unapply method of an extractor.
Copy link
Member

Choose a reason for hiding this comment

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

I don't think our checkfiles have ansi color escape codes normally

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't investigate why we're getting it here, in part because it auto-generated and passes...

@smarter smarter merged commit d6fe4b4 into scala:master Dec 8, 2021
@dwijnand dwijnand deleted the ko-product-0-extractor branch December 12, 2021 13:03
@Kordyjan Kordyjan added this to the 3.1.2 milestone Aug 2, 2023
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.

compiler throws AssertionError when Product Match zero-arity
3 participants