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

disable weird type inference for object constructors #24455

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Nov 19, 2024

closes #24372, refs #20091

This was added in #20091 for some reason but doesn't actually work and only makes error messages more obscure. So for now, it's disabled.

Can also be backported to 2.0 if necessary.

@Araq Araq merged commit a610f23 into nim-lang:devel Nov 19, 2024
18 checks passed
@Araq
Copy link
Member

Araq commented Nov 19, 2024

Too risky to backport IMHO.

Copy link
Contributor

Thanks for your hard work on this PR!
The lines below are statistics of the Nim compiler built from a610f23

Hint: mm: orc; opt: speed; options: -d:release
177828 lines; 8.783s; 653.547MiB peakmem

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.

Bad error message when returning object with missing generic
2 participants