mirror of
https://github.com/danbulant/nushell
synced 2026-06-11 10:41:12 +00:00
In some rare cases, the global predeclarations would clash, for example:
> module spam { export def foo [] { "foo" } }; def foo [] { "bar" }
In the example, the `foo [] { "bar" }` would get predeclared first, then
the predeclaration would be overwritten and consumed by `foo [] {"foo"}`
inside the module, then when parsing the actual `foo [] { "bar" }`, it
would not find its predeclaration.
|
||
|---|---|---|
| .. | ||
| ast | ||
| engine | ||
| value | ||
| example.rs | ||
| id.rs | ||
| lib.rs | ||
| shell_error.rs | ||
| signature.rs | ||
| span.rs | ||
| syntax_shape.rs | ||
| ty.rs | ||