Solomon
4968b6b9d0
fix error when exporting consts with type signatures in modules (#14118)
Fixes #14023
# Description
- Prevents "failed to find added variable" when modules export constants
with type signatures:
```nushell
> module foo { export const bar: int = 2 }
Error: nu::parser::unknown_state
× Internal error.
╭─[entry #1:1:21]
1 │ module foo { export const bar: int = 2 }
· ─────────┬────────
· ╰── failed to find added variable
```
- Returns `name_is_builtin_var` errors for names with type signatures:
```nushell
> let env: string = "";
Error: nu::parser::name_is_builtin_var
× `env` used as variable name.
╭─[entry #1:1:5]
1 │ let env: string = "";
· ─┬─
· ╰── already a builtin variable
```
2024-10-22 11:54:31 +02:00
..
2024-05-13 13:37:53 +00:00
2024-08-22 21:22:10 +02:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-10-11 07:51:50 -05:00
2024-10-11 18:40:32 +02:00
2024-05-13 13:37:53 +00:00
2024-10-20 23:12:57 +02:00
2024-07-25 18:28:44 +08:00
2024-05-13 13:37:53 +00:00
2024-10-05 15:19:26 +02:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-07-21 01:32:36 -07:00
2024-08-22 11:54:27 +02:00
2024-10-22 11:54:31 +02:00
2024-10-11 07:53:39 -05:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-23 02:05:27 +00:00
2024-10-03 06:28:22 -05:00
2024-06-28 09:47:12 +08:00
2024-05-13 13:37:53 +00:00
2024-07-17 16:02:42 -05:00
2024-05-13 13:37:53 +00:00