You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We only accept the : type annotation if directly placed next to the preceding token. (def foo [bar: int]: nothing -> string {} instead of def foo [bar : int] : nothing -> string {})
But instead of raising an error this silently ignores all the type information but still creates a defintion. (for which the default i/o type pair is any -> any)
@texastoland figured out this problem after I ran into the same and started to work on this in #12358 but this ran into some roadblocks.
Describe the bug
Here is an example script
test.nu
:input/output types
of nu script execution help message output are alwaysany
:How to reproduce
Execute help for the script:
Expected behavior
When execute this:
Should get like this:
Screenshots
No response
Configuration
Additional context
No response
The text was updated successfully, but these errors were encountered: