Skip to content

Conversation

@liufengyun
Copy link
Contributor

Fix #3645: handle type alias in child instantiation

@smarter
Copy link
Member

smarter commented Dec 10, 2017

I think this code would benefit from having more comments explaining what it does :).

if (tref.symbol.is(Module)) mapOver(tref)
else newTypeVar(TypeBounds.upper(tp.underlying))
case tp: TypeRef if tp.underlying.isInstanceOf[TypeBounds] =>
// Note that the logic for contra- and co-variance is reverse of `typeParamMap`
Copy link
Member

@smarter smarter Dec 11, 2017

Choose a reason for hiding this comment

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

typeParamMap was renamed parentTypeMap :)

Copy link
Contributor

@OlivierBlanvillain OlivierBlanvillain left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

4 participants