Closed ggb-sw closed 1 month ago
OK, I realise what I did wrong (mistyped type
where I meant to type num
), but nonetheless it should give me a compilation error and not a compiler crash.
Minimal: echo type is int
Not necessarily invalid code, type
is still a type.
Probably relevant:
echo typeof(type)
None
Likely the expression type
has nil
type.
Culprit:
When does an expression have the type typedesc[None]
while also not being equal to just type
/typedesc
?
Description
Nim Version
Nim Compiler Version 2.0.0 [Linux: amd64] Compiled at 2023-08-01 Copyright (c) 2006-2023 by Andreas Rumpf
git hash: a488067a4130f029000be4550a0fb1b39e0e9e7c active boot switches: -d:release
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response