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

fix #10122: check parent types of references and types of parameters #10126

Closed
wants to merge 1 commit into from

Conversation

bishabosha
Copy link
Member

@bishabosha bishabosha commented Oct 30, 2020

in scala 2 it seems the types of parameters and valdef results is also checked

tree match
case ddef: DefDef =>
for
vparams <- ddef.vparamss
Copy link
Member

Choose a reason for hiding this comment

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

RefChecks already traverses trees, can we check things at the point where we're traversing them instead of retraversing them here? This is what scala 2 does (see checkUndesiredProperties)

Copy link
Member Author

@bishabosha bishabosha Oct 30, 2020

Choose a reason for hiding this comment

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

yes thank you I will try that, the reverse order is annoying for module definitions

Copy link
Member Author

@bishabosha bishabosha Nov 3, 2020

Choose a reason for hiding this comment

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

following discussion at the dotty meeting this will need to be done at the same place we issue deprecation warnings, as scalac reports violations of compileTimeOnly for type aliases.

Possibly follow what is described in #9825 (comment)

@bishabosha bishabosha marked this pull request as draft October 30, 2020 17:09
@smarter smarter assigned bishabosha and unassigned smarter Dec 11, 2020
@bishabosha
Copy link
Member Author

bishabosha commented Jan 13, 2021

original issue was closed, so this is not a fix

@bishabosha bishabosha closed this Jan 13, 2021
@bishabosha bishabosha deleted the fix-10122 branch September 10, 2021 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.

2 participants