Skip to content

Conversation

@felixmulder
Copy link
Contributor

No description provided.

else
new ApplyToUntyped(tree, fun1, funRef, proto, pt)(argCtx(tree))
convertNewGenericArray(ConstFold(app.result))
case mt: MethodType =>
Copy link
Member

Choose a reason for hiding this comment

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

I would squash this commit and the next one in the third commit, no need to record everything that was tried.

@felixmulder
Copy link
Contributor Author

Addressed @smarter's concerns - we'd like input by @odersky on the fix however, so waiting on that before merging.

// When this happens we simply remove the select to make expr1 a valid
// block expression. The `.apply` will be added back around the block when
// the block itself is adapted later.
val expr1 = typedExpr(tree.expr, pt)(exprCtx) match {
Copy link
Contributor

Choose a reason for hiding this comment

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

But what if the .apply was added explicitly by the user? Then it should not be removed. It seems we need another solution.

@odersky
Copy link
Contributor

odersky commented Sep 17, 2016

Superseded by #1522.

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