mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
fix rtti sizeof for varargs in global scope (#13125) [backport]
(cherry picked from commit bf2e052e6d)
This commit is contained in:
committed by
narimiran
parent
3e76777de8
commit
8994e8f2e2
@@ -5,6 +5,7 @@ TEMP=C:\Programs\xyz\bin
|
||||
8 5 0 0
|
||||
pre test a:test b:1 c:2 haha:3
|
||||
assignment test a:test b:1 c:2 haha:3
|
||||
abc123
|
||||
'''
|
||||
"""
|
||||
|
||||
@@ -207,3 +208,11 @@ when false:
|
||||
var
|
||||
a, b: Foo
|
||||
a = b
|
||||
|
||||
block tgeneric_assign_varargs:
|
||||
template fatal(msgs: varargs[string]) =
|
||||
for msg in msgs:
|
||||
stdout.write(msg)
|
||||
stdout.write('\n')
|
||||
|
||||
fatal "abc", "123"
|
||||
|
||||
Reference in New Issue
Block a user