Skip to content

Fix #248: Class cannot inherit from refinement types #278

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 3 commits into from
Dec 13, 2014

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Dec 13, 2014

We now check that classes do not inherit from refinement types
(unless they are encodings of parameterized types), nor from
& or | types.

Review by @smarter.

We now check that classes do not inherit from refinement types
(unless they are an encoding of parameterized types), nor from
& or | types.
@odersky
Copy link
Contributor Author

odersky commented Dec 13, 2014

Closes #248

@odersky
Copy link
Contributor Author

odersky commented Dec 13, 2014

Checked that this closes #214 as well.

@smarter
Copy link
Member

smarter commented Dec 13, 2014

LGTM.

odersky added a commit that referenced this pull request Dec 13, 2014
Fix #248: Class cannot inherit from refinement types
@odersky odersky merged commit 1466e88 into scala:master Dec 13, 2014
@allanrenucci allanrenucci deleted the fix/#248-inherit-refinements branch December 14, 2017 19:21
tgodzik added a commit to tgodzik/scala3 that referenced this pull request Apr 29, 2025
Backport "Fix scala#21721: make case TypeBlock(_, _) not match non-type Block" to 3.3 LTS
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