mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 22:35:24 +00:00
* add vm value preparation proc * small optimization
This commit is contained in:
committed by
Andreas Rumpf
parent
12fc1dfb2c
commit
99a4fed96b
@@ -49,3 +49,15 @@ myEnums = enumerators2()
|
||||
echo myEnums
|
||||
myEnums = enumerators3()
|
||||
echo myEnums
|
||||
|
||||
#10751
|
||||
|
||||
type Tuple = tuple
|
||||
a: string
|
||||
b: int
|
||||
|
||||
macro foo(t: static Tuple): untyped =
|
||||
doAssert t.a == "foo"
|
||||
doAssert t.b == 12345
|
||||
|
||||
foo((a: "foo", b: 12345))
|
||||
|
||||
Reference in New Issue
Block a user