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

Set zero span for synthetic enum import selector #14498

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Feb 16, 2022

Fixes #11683

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM but it would be nice to leave a documentation comment mentioning why we special-case positions here.

compiler/src/dotty/tools/dotc/ast/Desugar.scala Outdated Show resolved Hide resolved
compiler/src/dotty/tools/dotc/ast/Desugar.scala Outdated Show resolved Hide resolved
compiler/src/dotty/tools/dotc/ast/Desugar.scala Outdated Show resolved Hide resolved
@tgodzik tgodzik merged commit e492f7a into scala:main Feb 17, 2022
@tgodzik tgodzik deleted the fix-11683 branch February 17, 2022 14:17
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.

Interactive.pathTo shows ImportType for repeated enum case.
2 participants