Skip to content

Commit

Permalink
closes #1072; add a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout committed Feb 19, 2023
1 parent 6c15958 commit 4669834
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/specialops/tcallops.nim
Expand Up @@ -37,3 +37,13 @@ doAssert a(b) == "(12)"
doAssert a.b(c) == `()`(b, a, c)
doAssert (a.b)(c) == `()`(a.b, c)
doAssert `()`(a.b, c) == `()`(`()`(b, a), c)

block: # bug #1072
var x: int

proc foo(some:int):int = some
proc `()`(l,r:string): string = discard

block:
var foo = 42
doAssert x.foo == 0

0 comments on commit 4669834

Please sign in to comment.