Skip to content

Refinements to auto-tupling #1459

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 4 commits into from
Aug 21, 2016
Merged

Refinements to auto-tupling #1459

merged 4 commits into from
Aug 21, 2016

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 18, 2016

Fixes a nasty interaction with implicit search ion qualifiers.

There's a nasty interaction with auto-tupling and trying to insert an implicit
on the qualifier of a call. If the original call fails, we need to "undo" any
auto-tupling decisions in calls where an implicit is inserted on the qualifier.

Also: Needed to fix canAutoTuple test so that Scala2 feature is checked instead of dotty's.

Also: Drop features in dotty.language that duplicate those in scala.language.
 - Delete redundant t2660 (exists elready in pos)
 - Comment t1756
 - Recategorize tryexpr
Needed because the test is also run in neg wihtout command line option.
/** Keep union types */
val keepUnions = new Feature

/** No auto tupling */
val noAutoTupling = new Feature
val f = "".contains("", (_: Int))
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that was an intentional change

} else typedApply(
cpy.Apply(tree)(untpd.TypedSplice(fun2), proto.typedArgs map untpd.TypedSplice), pt)
}
def fail = { failedState.commit(); failedVal }
Copy link
Member

Choose a reason for hiding this comment

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

Should be def fail() since it's not pure

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