Skip to content

Revert some additions of free variables to type restrictions#11246

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:bug/forall-restrictions
Sep 30, 2021
Merged

Revert some additions of free variables to type restrictions#11246
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:bug/forall-restrictions

Conversation

@HertzDevil
Copy link
Contributor

Resolves #11244. Reverts part of #10467 where generic type restrictions like Foo were changed into Foo(T) forall T, as they are not equivalent.

@HertzDevil HertzDevil added kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:regression Something that used to correctly work but no longer works topic:stdlib:collection labels Sep 25, 2021
Copy link
Member

@asterite asterite left a comment

Choose a reason for hiding this comment

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

Thank you!

@asterite
Copy link
Member

It would be nice to have some specs so we make sure nobody adds them back again. Or maybe a comment in the source code.

@vlazar
Copy link
Contributor

vlazar commented Sep 28, 2021

It looks reasonable to include in 1.2.0, since this fixes an issue from #10467 which is part of 1.2.0 milestone.

@beta-ziliani beta-ziliani added this to the 1.2.0 milestone Sep 28, 2021
@straight-shoota straight-shoota merged commit 4264636 into crystal-lang:master Sep 30, 2021
@HertzDevil HertzDevil deleted the bug/forall-restrictions branch September 30, 2021 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. kind:regression Something that used to correctly work but no longer works topic:stdlib:collection

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: undefined constant U

5 participants