diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-04-10 21:28:11 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2017-04-10 23:58:05 +0300 |
commit | a3f19c87fb2134db25543f1e15b96144df5638dc (patch) | |
tree | eeb93b47e30ac8add3ead8255be97c3b3b1c1d44 /tests/closure | |
parent | f7b10e213b81588d560e37aa5f7c8b0d10ea5689 (diff) | |
download | Nim-a3f19c87fb2134db25543f1e15b96144df5638dc.tar.gz |
lift parameter-less do block to lambdas
Diffstat (limited to 'tests/closure')
-rw-r--r-- | tests/closure/tdonotation.nim | 6 |
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") |