Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented Dec 12, 2017

One scenario we overlooked was that an argument in a FunProto might have been
computed in a context that was subsequently retracted from its typerstate (e.g.
because an enclosing subtype test failed). In that case we need to re-evaluate
the argument in order to avoid orphan typerefs.

One scenario we overlooked was that an argument in a FunProto might have been
computed in a context that was subsequently retracted from its typerstate (e.g.
because an enclosing subtype test failed). In that case we need to re-evaluate
the argument in order to avoid orphan typerefs.
@odersky odersky requested a review from smarter December 13, 2017 07:39
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


// ---------- Invalidation -------------------------------------------

private var retracted = false
Copy link
Member

Choose a reason for hiding this comment

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

private[this] ?


/** Reset constraint to `c` and mark current constraint as retracted if it differs from `c` */
def resetConstraintTo(c: Constraint) = {
if (c `ne` myConstraint) myConstraint.markRetracted()
Copy link
Member

Choose a reason for hiding this comment

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

Why use backquotes around ne ? New coding style for infix calls?

@allanrenucci allanrenucci merged commit c5e595e into scala:master Dec 18, 2017
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