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.22k stars 1.46k forks source link

adapt semOpAux to opt-in symchoices #23750

Closed metagn closed 3 days ago

metagn commented 1 week ago

fixes #23749, refs #22716

semIndirectOp is used here because of the callback expressions, in this case db.getProc(...), and semIndirectOp calls semOpAux to type its arguments before overloading starts. Hence it can opt in to symchoices since overloading will resolve them.

github-actions[bot] commented 3 days ago

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

Hint: mm: orc; opt: speed; options: -d:release 179018 lines; 8.749s; 664.691MiB peakmem