deprecate do: meaning do (): + misc cleanup (#20927)
* test disable do: block lambda lifting * fix last test [skip ci] * deprecate `do:` meaning `do ():` + misc cleanup closes https://github.com/nim-lang/RFCs/issues/486 * oops * fix * no idea what could be causing nimsuggest failure other than this * ensure ci works
This commit is contained in:
parent
739e1badb6
commit
6d8cf25bd7
13 changed files with 42 additions and 65 deletions
|
|
@ -239,19 +239,19 @@ block doNotation:
|
|||
b.onClick do (e: Event):
|
||||
echo "click at ", e.x, ",", e.y
|
||||
|
||||
b.onFocusLost:
|
||||
b.onFocusLost do ():
|
||||
echo "lost focus 1"
|
||||
|
||||
b.onFocusLost do:
|
||||
b.onFocusLost do ():
|
||||
echo "lost focus 2"
|
||||
|
||||
b.onUserEvent("UserEvent 1") do:
|
||||
b.onUserEvent("UserEvent 1") do ():
|
||||
discard
|
||||
|
||||
b.onUserEvent "UserEvent 2":
|
||||
onUserEvent(b, "UserEvent 2") do ():
|
||||
discard
|
||||
|
||||
b.onUserEvent("UserEvent 3"):
|
||||
b.onUserEvent("UserEvent 3") do ():
|
||||
discard
|
||||
|
||||
b.onUserEvent("UserEvent 4", () => echo "event 4")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue