Skip to content

Fix #2024: TypeApply can be a final apply of a recursive method. #2025

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 5 commits into from
Apr 5, 2017

Conversation

DarkDimius
Copy link
Contributor

nullary methods with type parameters were handled wrongly, which led to
absence of type application and a cryptic error message.

@DarkDimius
Copy link
Contributor Author

@felixmulder, is our CI dead?

+ git init
Initialized empty Git repository in /drone/src/github.com/lampepfl/dotty/.git/
+ git remote add origin https://github.com/lampepfl/dotty.git
+ git fetch --no-tags origin +refs/pull/2025/merge:
fatal: Couldn't find remote ref refs/pull/2025/merge
exit status 128

@DarkDimius
Copy link
Contributor Author

@nicolasstucki please review.

(if (mirrorC ne null) mirrorC else plainC).visitAttribute(dataAttr)
val store = if (mirrorC ne null) mirrorC else plainC
store.visitAttribute(dataAttr)
if (ctx.settings.emitTasty.value) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This does not seem to be relevant to this PR as -XemitTasty is never enabled.

It saves tasty output near the class file output to a *.tasty-file.
nullary methods with type parameters were handled wrongly,
which led to absence of type application and a cryptic error message.
@odersky
Copy link
Contributor

odersky commented Mar 15, 2017

Let's make it a -Y option?

@@ -44,6 +44,7 @@ class ScalaSettings extends Settings.SettingGroup {
/** -X "Advanced" settings
*/
val Xhelp = BooleanSetting("-X", "Print a synopsis of advanced options.")
val emitTasty = BooleanSetting("-XemitTasty", "Generate tasty in separate *.tasty file.")
Copy link
Contributor

Choose a reason for hiding this comment

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

You should probably make it a -Y option or remove it from this PR.

@nicolasstucki
Copy link
Contributor

LGTM

@nicolasstucki nicolasstucki merged commit 4f4e373 into scala:master Apr 5, 2017
@allanrenucci allanrenucci deleted the fix-2024 branch December 14, 2017 19:19
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.

3 participants