Skip to content

Commit

Permalink
Make Junction.Str return...a Str!
Browse files Browse the repository at this point in the history
Previously, it would form a Junction with everything Str'd. Thing is,
things that (fairly) expect to get back a Str when they call .Str will
then explode when they try to unbox it. This brings us in line with
Niecza's semantics, so at the very least it's convergence...
  • Loading branch information
jnthn committed Jan 11, 2013
1 parent 463daf0 commit 46913d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Junction.pm
Expand Up @@ -20,7 +20,7 @@ my class Junction is Mu {
}

multi method Str(Junction:D:) {
self.new($!storage.map({$_.Str}), :type($!type))
self.perl
}

multi method ACCEPTS(Junction:D: Mu \topic) {
Expand Down

0 comments on commit 46913d6

Please sign in to comment.