diff options
| author | Leedehai <18319900+Leedehai@users.noreply.github.com> | 2024-01-02 04:13:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-02 09:13:45 +0000 |
| commit | 39e53fcdc9af2cabbc272387a64ac099e0b8077a (patch) | |
| tree | 763781da08792528c1330148ed6ee9951e880371 /tests/typ | |
| parent | 527d63ed25d668eeb24e21ff441429fbcc7ad6a5 (diff) | |
Clarify the way to access functions from dictionaries (#3064)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compiler/dict.typ | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/typ/compiler/dict.typ b/tests/typ/compiler/dict.typ index e66d8099..cba2b618 100644 --- a/tests/typ/compiler/dict.typ +++ b/tests/typ/compiler/dict.typ @@ -105,11 +105,11 @@ --- #{ let dict = ( - func: () => 1, + call-me: () => 1, ) - // Error: 8-12 type dictionary has no method `func` - // Hint: 8-12 to call the function stored in the dictionary, surround the field access with parentheses - dict.func() + // Error: 8-15 type dictionary has no method `call-me` + // Hint: 8-15 to call the function stored in the dictionary, surround the field access with parentheses, e.g. `(dict.call-me)(..)` + dict.call-me() } --- |
