Skip to content

Enable -Ycheck:all #4183

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 8 commits into from
Apr 17, 2018
Merged

Conversation

smarter
Copy link
Member

@smarter smarter commented Mar 25, 2018

No description provided.

@smarter smarter changed the title Progress towards -Ycheck:all [WIP] Progress towards -Ycheck:all Mar 26, 2018
@smarter smarter force-pushed the fix/Ycheck-frontend-2 branch 2 times, most recently from 7869bc3 to c5aca6e Compare April 9, 2018 17:39
@smarter smarter changed the title [WIP] Progress towards -Ycheck:all Enable -Ycheck:all Apr 9, 2018
@smarter smarter force-pushed the fix/Ycheck-frontend-2 branch from c5aca6e to 7d703bb Compare April 9, 2018 18:01
@smarter smarter requested a review from odersky April 9, 2018 18:32
Copy link
Contributor

@odersky odersky 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

@@ -170,14 +170,15 @@ trait TreeInfo[T >: Untyped <: Type] { self: Trees.Instance[T] =>
case _ => false
}

/** Is this argument node of the form <expr> : _* ?
/** Is this argument node of the form <expr> : _*, or is it a reference to a
* such an argument ? The latter case can happen when an argument is lifted.
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: to a

@odersky odersky assigned smarter and unassigned odersky Apr 16, 2018
smarter added 8 commits April 17, 2018 15:47
This should be safe like skipping FunProto since we'll check the type
application result anyway. This is needed to get -Ycheck:frontend to
work when named type parameters are used like in t1513a.scala
Necessary for -Ycheck:frontend to work
It was accidentally disabled because elimJavaPackages was renamed.

This required a change to `isWildcardStarArg` to handle retyping repeated
arguments that have been lifted in Typer, for example:

    foo(1, 2, 3)

might be lifted to:

    val args: Int* = [1, 2, 3]
    foo(args)
Needed to get tests/pos/infersingle.scala to pass -Ycheck:frontend
Necessary to get -Ycheck:pickler to pass.
@smarter smarter force-pushed the fix/Ycheck-frontend-2 branch from 7d703bb to 35c13d8 Compare April 17, 2018 13:47
@smarter smarter merged commit 663b4b9 into scala:master Apr 17, 2018
@allanrenucci allanrenucci deleted the fix/Ycheck-frontend-2 branch April 17, 2018 14:28
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