Skip to content
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

Don't merge NamedTuple metaclasses through instance types #10501

Merged

Conversation

HertzDevil
Copy link
Contributor

Follow-up to #6342. Makes the following not crash:

x = typeof({a: 1})
x = typeof({a: 'x'}) # BUG: trying to assign NamedTuple(a: Char | Int32).class <- NamedTuple(a: Int32).class

@bcardiff bcardiff added this to the 1.0.0 milestone Mar 12, 2021
@bcardiff bcardiff merged commit 2698c43 into crystal-lang:master Mar 15, 2021
@HertzDevil HertzDevil deleted the bug/namedtuple-metaclass-union branch March 15, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants