diff options
| author | Pg Biel <9021226+PgBiel@users.noreply.github.com> | 2023-05-03 09:20:53 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-03 14:20:53 +0200 |
| commit | f88ef45ee6e285df59c7aa5cec935de331b4b6e0 (patch) | |
| tree | eab5481d4b50d1d57adb4d122d7fa023dee2dcec /src/eval/value.rs | |
| parent | db6a710638cf26ddcd09b8fba74b9d1caf6cb4b8 (diff) | |
Function scopes (#1032)
Diffstat (limited to 'src/eval/value.rs')
| -rw-r--r-- | src/eval/value.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs index 1bfad9c8..bd612cce 100644 --- a/src/eval/value.rs +++ b/src/eval/value.rs @@ -127,6 +127,7 @@ impl Value { Self::Dict(dict) => dict.at(field, None).cloned(), Self::Content(content) => content.at(field, None), Self::Module(module) => module.get(field).cloned(), + Self::Func(func) => func.get(field).cloned(), v => Err(eco_format!("cannot access fields on type {}", v.type_name())), } } |
