crystal-lang / crystal

The Crystal Programming Language
https://crystal-lang.org
Apache License 2.0
19.26k stars 1.61k forks source link

Duplicate ancestors in `ReferenceStorage` #14564

Open HertzDevil opened 2 months ago

HertzDevil commented 2 months ago
{{ ReferenceStorage.ancestors }}        # => [Value, Object, Value, Object]
{{ ReferenceStorage(Regex).ancestors }} # => [Value, Object, Value, Object]

This doesn't seem to be intended, or at least I don't recall this happening with any other type in the language.