Skip to content

Fix #2515: Fix handling constructor annotation arguments #3757

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

Merged
merged 1 commit into from
Jan 7, 2018

Conversation

allanrenucci
Copy link
Contributor

While browsing open issues, I found a patch by @odersky for #2515 that apparently never got a PR.

I rebased it. Let's see if the CI is green

When doing the indentation-based syntax, I found a better hammer:
We can simply copy the Scanner at the current offset to create a
lookahead Scanner. With that, the logic for handling primary
constructor arguments could be greatly simplified. Most of
scala#2432 could be reverted.
@allanrenucci allanrenucci requested a review from odersky January 5, 2018 10:33
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

LGTM.

@odersky odersky merged commit 7e402a7 into scala:master Jan 7, 2018
@allanrenucci allanrenucci deleted the fix-#2515 branch January 7, 2018 11:04
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.

2 participants