Skip to content

Commit

Permalink
Make Map method use Map class directly
Browse files Browse the repository at this point in the history
Avoid bypassing through a hash as this includes extra containerization
for the values.

Fixes spectest issue for #3081
  • Loading branch information
vrurg committed Jul 29, 2019
1 parent 9457aee commit cb1fbf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Any.pm6
Expand Up @@ -84,7 +84,7 @@ my class Any { # declared in BOOTSTRAP
multi method Hash() { self.hash.Hash }

proto method Map(|) is nodal {*}
multi method Map() { self.hash.Map }
multi method Map() { Map.new(self) }

proto method elems(|) is nodal {*}
multi method elems(Any:U: --> 1) { }
Expand Down

0 comments on commit cb1fbf6

Please sign in to comment.