Skip to content

Commit

Permalink
Stub Junction ~ Junction
Browse files Browse the repository at this point in the history
Without it, trying to interpolate more than one Junction into a
string (or more than one Junction in a List.join) infiniloops.
Now at least it dies with an NYI error.
  • Loading branch information
lizmat committed Aug 27, 2017
1 parent 7cd153f commit 95a70ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Junction.pm
Expand Up @@ -393,6 +393,10 @@ multi sub infix:<~>(Junction:D $a, Str:D $b) {
)
}

multi sub infix:<~>(Junction:D $a, Junction:D $b) {
X::NYI.new(feature => "Junction ~ Junction").throw
}

nqp::p6setautothreader( -> |c {
Junction.AUTOTHREAD(|c)
} );
Expand Down

0 comments on commit 95a70ca

Please sign in to comment.