Skip to content

Improve Scala 2 macro error handling #6550

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
May 22, 2019

Conversation

smarter
Copy link
Member

@smarter smarter commented May 22, 2019

  • Use startPos as the position to avoid error messages printing many
    lines of codes.
  • Use tree.tpe when the tree is replaced by a throw to avoid breaking
    type inference.
  • Mention the existence of -Xignore-scala2-macros.

- Use startPos as the position to avoid error messages printing many
lines of codes.
- Use tree.tpe when the tree is replaced by a throw to avoid breaking
  type inference.
- Mention the existence of -Xignore-scala2-macros.
@smarter smarter requested a review from nicolasstucki May 22, 2019 15:45
@smarter smarter added this to the 0.15 Tech Preview milestone May 22, 2019
@smarter smarter merged commit ffb250d into scala:master May 22, 2019
@allanrenucci allanrenucci deleted the fix-scala2-maco branch May 22, 2019 18:56
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