Skip to content

循環参照表現が正しくない #652

@mattn

Description

@mattn
let a = {}
let a["a"] = a
echo a
{'a': {...}}

これはOK。しかし

let a = {}
echo [a,a,a]
[{}, {...}, {...}]

これや

echo repeat([[]], 3)
[[],[...],[...]]

これはNG。
循環参照を copyID で確認しているけど、それを戻していないので1番目の copyID がそのまま使われている。

https://gist.github.com/mattn/d9deb113d7325d7119fe

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions