fixes #3584
This commit is contained in:
parent
7211462a04
commit
7ee1847137
2 changed files with 14 additions and 1 deletions
|
|
@ -1635,6 +1635,7 @@ proc matchesAux(c: PContext, n, nOrig: PNode,
|
||||||
if arg != nil and m.baseTypeMatch and container != nil:
|
if arg != nil and m.baseTypeMatch and container != nil:
|
||||||
addSon(container, arg)
|
addSon(container, arg)
|
||||||
incrIndexType(container.typ)
|
incrIndexType(container.typ)
|
||||||
|
checkConstraint(n.sons[a])
|
||||||
else:
|
else:
|
||||||
m.state = csNoMatch
|
m.state = csNoMatch
|
||||||
return
|
return
|
||||||
|
|
|
||||||
12
tests/js/tvarargs.nim
Normal file
12
tests/js/tvarargs.nim
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
# bug #3584
|
||||||
|
|
||||||
|
type
|
||||||
|
ConsoleObj {.importc.} = object of RootObj
|
||||||
|
log*: proc() {.nimcall varargs.}
|
||||||
|
Console = ref ConsoleObj
|
||||||
|
|
||||||
|
var console* {.importc nodecl.}: Console
|
||||||
|
|
||||||
|
when isMainModule:
|
||||||
|
console.log "Hello, world"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue