parent
6b93db7070
commit
e896977bd1
1 changed files with 10 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue