summary refs log tree commit diff stats
path: root/tests/closure
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-04-10 21:28:11 +0300
committerZahary Karadjov <zahary@gmail.com>2017-04-10 23:58:05 +0300
commita3f19c87fb2134db25543f1e15b96144df5638dc (patch)
treeeeb93b47e30ac8add3ead8255be97c3b3b1c1d44 /tests/closure
parentf7b10e213b81588d560e37aa5f7c8b0d10ea5689 (diff)
downloadNim-a3f19c87fb2134db25543f1e15b96144df5638dc.tar.gz
lift parameter-less do block to lambdas
Diffstat (limited to 'tests/closure')
-rw-r--r--tests/closure/tdonotation.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/closure/tdonotation.nim b/tests/closure/tdonotation.nim
index 5acb17da2..94eba8ddb 100644
--- a/tests/closure/tdonotation.nim
+++ b/tests/closure/tdonotation.nim
@@ -35,11 +35,11 @@ b.onFocusLost:
 b.onFocusLost do:
   echo "lost focus 2"
 
-b.onUserEvent("UserEvent 1") do:
+b.onUserEvent "UserEvent 1" do:
   discard
 
-b.onUserEvent("UserEvent 2"):
+b.onUserEvent "UserEvent 2":
   discard
 
-b.onUserEvent("UserEvent 3", () => echo "event 2")
+b.onUserEvent("UserEvent 3", () => echo "event 3")