Callback with generics can crash compiler #22921
Labels
Compiler Crash
Generics
Invalid Code Acceptance
Everything related to compiler not complaining about invalid code
Description
Probably asking the compiler to use a generic as a callback is understandably stressing the compiler out a bit, and maybe it is simply more than the language is capable of, but having the compiler crash is probably not the most informative way of telling the user he should not be trying to do it.
Nim Version
Nim Compiler Version 2.0.0 [Linux: amd64]
Compiled at 2023-08-01
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: a488067
active boot switches: -d:release
Current Output
No response
Expected Output
No response
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: