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

only skip generic instances of structural types for destructors #24411

Closed metagn closed 1 week ago

metagn commented 2 weeks ago

fixes #22479, fixes #24374, continuation of #23718

arnetheduck commented 2 weeks ago

smells like https://github.com/nim-lang/Nim/issues/23445 in a different context :)

metagn commented 1 week ago

Closing for now since #24425 was merged but the code might be useful in the future