-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Nu adds uneceseray quotes to ints, giving type errors #5472
Copy link
Copy link
Closed
Labels
category:bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Nu seems to add quotes to script file inputs when not necessary, making incorrect typings.
the following script does not execute.
# foo.nu
def main [a: int] {}
How to reproduce
- Have a scriptfile with a type limited parameter. example can be seen above.
- Try to execute the script
nu foo.nu 5
Expected behavior
It should not give error upon running.
Screenshots
Configuration
| key | value |
|---|---|
| version | 0.62.0 |
| branch | master |
| tag | |
| short_commit | 1cb449b |
| commit_hash | 1cb449b |
| commit_date | 2022-05-07 12:33:33 +00:00 |
| build_os | windows-x86_64 |
| rust_version | rustc 1.60.0 (7737e0b5c 2022-04-04) |
| rust_channel | stable-x86_64-pc-windows-msvc |
| cargo_version | cargo 1.60.0 (d1fd9fe2c 2022-03-01) |
| pkg_version | 0.62.0 |
| build_time | 2022-05-07 16:06:29 +02:00 |
| build_rust_channel | release |
| features | database, dataframe, default, trash, which, zip |
| installed_plugins | gstat |
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category:bugSomething isn't workingSomething isn't working

