diff options
author | Zahary Karadjov <zahary@gmail.com> | 2017-07-18 11:50:06 +0300 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-08-19 08:57:43 +0200 |
commit | 7ad115f530942c0fc6718c146ee1a5a97ed61e6f (patch) | |
tree | 200af3aa9257690f92c6c91be478bfbbd17f1e51 /tests/closure | |
parent | c3e5c6c326747cf0acbe0e4f3d8dc71f9332a76e (diff) | |
download | Nim-7ad115f530942c0fc6718c146ee1a5a97ed61e6f.tar.gz |
Restore the old behavior of parsing "quote do:"
close #5845
Diffstat (limited to 'tests/closure')
-rw-r--r-- | tests/closure/tdonotation.nim | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/closure/tdonotation.nim b/tests/closure/tdonotation.nim index 94eba8ddb..cc4f46bab 100644 --- a/tests/closure/tdonotation.nim +++ b/tests/closure/tdonotation.nim @@ -5,7 +5,9 @@ lost focus 1 lost focus 2 registered handler for UserEvent 1 registered handler for UserEvent 2 -registered handler for UserEvent 3''' +registered handler for UserEvent 3 +registered handler for UserEvent 4 +''' """ import future @@ -35,11 +37,14 @@ b.onFocusLost: b.onFocusLost do: echo "lost focus 2" -b.onUserEvent "UserEvent 1" do: +b.onUserEvent("UserEvent 1") do: discard b.onUserEvent "UserEvent 2": discard -b.onUserEvent("UserEvent 3", () => echo "event 3") +b.onUserEvent("UserEvent 3"): + discard + +b.onUserEvent("UserEvent 4", () => echo "event 4") |