const view types; fixes some cases from https://github.com/nim-lang/Nim/issues/15428 (#15488)
This commit is contained in:
parent
1e28cea0d1
commit
4e438f9096
7 changed files with 94 additions and 47 deletions
|
|
@ -1807,7 +1807,7 @@ proc getNullValue(typ: PType, info: TLineInfo; conf: ConfigRef): PNode =
|
|||
result.add getNullValue(t[i], info, conf)
|
||||
of tySet:
|
||||
result = newNodeIT(nkCurly, info, t)
|
||||
of tySequence:
|
||||
of tySequence, tyOpenArray:
|
||||
result = newNodeIT(nkBracket, info, t)
|
||||
else:
|
||||
globalError(conf, info, "cannot create null element for: " & $t.kind)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue