Skip to content

Fix of #375 - adapt returned value in erasure #382

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
Feb 27, 2015

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Feb 26, 2015

Alternative fix of #375. @DarkDimius can you take a look?

@@ -715,7 +715,15 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
}
val (from, proto) =
if (tree.from.isEmpty) enclMethInfo(ctx)
else (tree.from.asInstanceOf[tpd.Tree], WildcardType)
else {
val from = tree.from.asInstanceOf[tpd.Tree]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we sure that after erasure tree.from is not an EmptyTree?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why does that matter?

@DarkDimius
Copy link
Contributor

LGTM, thanks

DarkDimius added a commit that referenced this pull request Feb 27, 2015
Fix of #375 - adapt returned value in erasure
@DarkDimius DarkDimius merged commit 4e99877 into scala:master Feb 27, 2015
@allanrenucci allanrenucci deleted the fix/#375 branch December 14, 2017 19:21
tgodzik added a commit to tgodzik/scala3 that referenced this pull request May 2, 2025
Revert "Do not lift annotation arguments" from 3.3 LTS
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