aboutsummaryrefslogtreecommitdiff
path: root/test/lambdas.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-18 14:44:15 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-18 14:44:15 -0400
commitf4b04a1b8cd882e25fee592c819650c9b7e8566b (patch)
treedcecb8b4f83d569ebb00beb79988222d195b8f4c /test/lambdas.tm
parent04603308af3a2984d42eaa9e301cac0ffbded2a4 (diff)
Improved syntax for dollar-string literals
Diffstat (limited to 'test/lambdas.tm')
-rw-r--r--test/lambdas.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lambdas.tm b/test/lambdas.tm
index 40f24abb..8d543bfc 100644
--- a/test/lambdas.tm
+++ b/test/lambdas.tm
@@ -12,7 +12,7 @@ func main():
>> add_one(10)
= 11
- >> shout := func(msg:Text): say("{msg:upper()}!")
+ >> shout := func(msg:Text): say("$(msg:upper())!")
>> shout("hello")
>> asdf := add_one
@@ -36,7 +36,7 @@ func main():
fn := func():
return func():
return func():
- defer: //! {outer}
+ defer: //! $outer
return outer
>> fn()()()
= "Hello"