Skip to content

Conversation

@odersky
Copy link
Contributor

@odersky odersky commented May 31, 2020

No description provided.

case mirroredType: HKTypeLambda =>
val elems =
mirroredType.derivedLambdaType(
resType = TypeOps.nestedPairs(accessors.map(mirroredType.memberInfo(_).widenExpr))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

mirroredType.memberInfo(_) makes no sense here. mirroredType is a type lambda, and as such not a legal prefix on which we can take a memberInfo. So I changed to just _.info which avoids the crash. However, I have no idea whether that's correct.

@odersky
Copy link
Contributor Author

odersky commented May 31, 2020

@milessabin This looks still fishy to me. But I have no idea how to formulate a correct derivation in the higher-kinded case.

@odersky
Copy link
Contributor Author

odersky commented Jun 3, 2020

This is merged as part of #9090. @milessabin it would still be good if you could take a look at the changes to the higher-kinded product mirror materialization.

@odersky odersky closed this Jun 3, 2020
@milessabin
Copy link
Contributor

I'm not seeing anything obviously problematic about the change.

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.

2 participants