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.61k stars 1.47k forks source link

include new concepts in typeclasses, makes containsGenericType work #24453

Closed metagn closed 3 days ago

metagn commented 3 days ago

fixes #24450

The new concepts were previously not included in containsGenericType which prevents them from being instantiated. Here they are included by being added to tyTypeClasses though this doesn't have to be done, they can also be added manually to containsGenericTypeIter, but this might be too specific.

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 e28d2f42e9ef38e5b984608d86b0d37833d118d0

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