mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user