File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ proc createProcType(p, b: NimNode): NimNode {.compileTime.} =
5454
5555macro `=>` * (p, b: untyped ): untyped =
5656 # # Syntax sugar for anonymous procedures. It also supports pragmas.
57- # TODO : xxx pending #13491: uncomment in runnableExamples
5857 runnableExamples:
5958 proc passTwoAndTwo (f: (int , int ) -> int ): int = f (2 , 2 )
6059
@@ -69,8 +68,8 @@ macro `=>`*(p, b: untyped): untyped =
6968 myBot.call = (name: string ) {.noSideEffect .} => " Hello " & name & " , I'm a bot."
7069 assert myBot.call (" John" ) == " Hello John, I'm a bot."
7170
72- # let f = () => (discard) # simplest proc that returns void
73- # f()
71+ let f = () => (discard ) # simplest proc that returns void
72+ f ()
7473
7574 var
7675 params = @ [ident " auto" ]
You can’t perform that action at this time.
0 commit comments