fixes a regression
This commit is contained in:
parent
d1d017ae85
commit
767bd57289
1 changed files with 4 additions and 4 deletions
|
|
@ -2742,15 +2742,15 @@ proc getDefaultValue(p: BProc; typ: PType; info: TLineInfo): Rope =
|
||||||
result = rope"{}"
|
result = rope"{}"
|
||||||
of tyTuple:
|
of tyTuple:
|
||||||
result = rope"{"
|
result = rope"{"
|
||||||
for i in 0..<typ.len:
|
for i in 0..<t.len:
|
||||||
if i > 0: result.add ", "
|
if i > 0: result.add ", "
|
||||||
result.add getDefaultValue(p, typ[i], info)
|
result.add getDefaultValue(p, t[i], info)
|
||||||
result.add "}"
|
result.add "}"
|
||||||
of tyArray:
|
of tyArray:
|
||||||
result = rope"{"
|
result = rope"{"
|
||||||
for i in 0..<toInt(lengthOrd(p.config, typ.sons[0])):
|
for i in 0..<toInt(lengthOrd(p.config, t.sons[0])):
|
||||||
if i > 0: result.add ", "
|
if i > 0: result.add ", "
|
||||||
result.add getDefaultValue(p, typ.sons[1], info)
|
result.add getDefaultValue(p, t.sons[1], info)
|
||||||
result.add "}"
|
result.add "}"
|
||||||
#result = rope"{}"
|
#result = rope"{}"
|
||||||
of tySet:
|
of tySet:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue