summary refs log tree commit diff stats
path: root/tests/closure/tnamedparamanonproc.nim
blob: 94e32894f3e88176eb13b131a33d7484b8cd84e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
type
  PButton = ref object
  TButtonClicked = proc(button: PButton) {.nimcall.}

proc newButton*(onClick: TButtonClicked) =
  discard

proc main() =
  newButton(onClick = proc(b: PButton) =
    var requestomat = 12
    )

main()