nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.63k stars 1.47k forks source link

disable weird type inference for object constructors #24455

Closed metagn closed 6 days ago

metagn commented 1 week ago

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 commented 6 days ago

Too risky to backport IMHO.

github-actions[bot] commented 6 days ago

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

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