Skip to content

[backport] Fix separate compilation issues with opaque types #13219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Aug 11, 2021

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jul 30, 2021

This backports #13206

@odersky
Copy link
Contributor Author

odersky commented Jul 31, 2021

Not sure how to proceed here. Can someone else take over? If not this will have to wait for next release.

@odersky
Copy link
Contributor Author

odersky commented Aug 1, 2021

Linked to #13196 maybe? Do we have to backport that first?

@bishabosha
Copy link
Member

Linked to #13196 maybe? Do we have to backport that first?

I think both #13201 #13200 need to be backported

@odersky
Copy link
Contributor Author

odersky commented Aug 6, 2021

Maybe somebody else can take this over (assuming we really want to backport)?

@odersky odersky removed their assignment Aug 6, 2021
@smarter
Copy link
Member

smarter commented Aug 9, 2021

@BarkingBad it looks like the stdlib-sourcelinks-test test is broken in the release-3.0.2 branch, could you investigate?

@BarkingBad
Copy link
Contributor

Hopefully, #13274 will fix the problem.

@BarkingBad BarkingBad assigned smarter and unassigned BarkingBad Aug 10, 2021
Customized printer instead of falling back to toString
Type parameter Ax needs to be declared explicitly as covariant since Tensor is opaque.

This fell through the cracks before since under separate compilation type parameters
of opaque types got assigned structural variances. But this is incorrect. Under joint
compilation there would be an error.
@smarter smarter force-pushed the fix-13190-backport branch from 941f2e3 to 84c2b11 Compare August 11, 2021 12:43
@smarter smarter changed the title Fix 13190 backport [backport] Fix separate compilation issues with opaque types Aug 11, 2021
@smarter smarter merged commit 7a840f5 into scala:release-3.0.2 Aug 11, 2021
@smarter smarter deleted the fix-13190-backport branch August 11, 2021 17:32
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.

5 participants