Non-comptime local functions silently fail in a comptime
context
#5333
Labels
bug
Something isn't working
comptime
context
#5333
Aim
Calling a non-comptime function in the same crate from within a comptime block:
Expected Behavior
An error since non-comptime functions in the same crate cannot be called from comptime contexts. This is because comptime items are elaborated before all non-comptime items.
Bug
The comptime interpreter will silently see only an empty block as the definition of
foo
and nothing will be printed out.To Reproduce
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Installation Method
None
Nargo Version
No response
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: