Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
internal error when using typedesc `is` comparison in a macro #10136
The following errors with
import macros macro toGodotName(T: typedesc) = if T is string: echo "string" else: echo "not string"
The same works fine when using
This is most likely a regression, because the example is taken from the nim godot bindings, which used to work with 0.18. Is this still supposed to work with 0.19+?
Oh well, the assertion can be safely (?) replaced by something like:
if lhsType.base.kind == tyNone: return
(maybe just checking
This way the