Skip to content

Conversation

@nicolasstucki
Copy link
Contributor

No description provided.

case _ => super.transform(tree)
}
}.transform(ddef.rhs)
}.transform(ddef.rhs).changeOwner(ddef.symbol, ctx.owner)
Copy link
Member

Choose a reason for hiding this comment

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

To be more efficient, you can replace your TreeMap by a TreeTypeMap(oldOwners = ..., newOwners = ...), and avoid the need for changeOwner (which would create its own TreeTypeMap)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will change it

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

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

LGTM, but the tests are failing.

@nicolasstucki
Copy link
Contributor Author

Tests are failing on maser :(

@odersky told me he already has a fix for it.

@Blaisorblade
Copy link
Contributor

Cherry-picked likely fix in #4141.

@Blaisorblade
Copy link
Contributor

And new build at http://dotty-ci.epfl.ch/lampepfl/dotty/3824

@nicolasstucki nicolasstucki merged commit 50ad597 into scala:master Mar 20, 2018
@allanrenucci allanrenucci deleted the fix-asFunction-owner branch March 20, 2018 10:27
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