diff --git a/scripts/test/index-dictionaries.toy b/scripts/test/index-dictionaries.toy index f235803..b929c9e 100644 --- a/scripts/test/index-dictionaries.toy +++ b/scripts/test/index-dictionaries.toy @@ -38,4 +38,16 @@ } +//test dot calls +{ + fn f() { + return 42; + } + + var d = ["foo":f]; + + assert d.foo() == 42, "dot calls failed"; +} + + print "All good";