Skip to content

Commit

Permalink
Document nqp::nulls in coercer finder betterer
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Jan 5, 2018
1 parent 3947a4c commit 5ed59dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Perl6/World.nqp
Expand Up @@ -4199,7 +4199,7 @@ class Perl6::World is HLL::World {
my $val := $<longname><colonpair>[0].ast[2];
nqp::istype($val, QAST::Op)
?? $val.op eq 'p6bool'
?? nqp::null # we just got a regular DefiniteHOW
?? nqp::null # not a coercer, but just got a regular DefiniteHOW
!! $val.name eq '&infix:<,>' && @($val) == 0
?? self.find_symbol: ['Any'] # empty coercer source type
!! self.throw: $/, ['X', 'Syntax', 'Coercer', 'TooComplex']
Expand All @@ -4208,7 +4208,7 @@ class Perl6::World is HLL::World {
!! self.throw: $/, ['X', 'Syntax', 'Coercer', 'TooComplex']
}
else {
nqp::null
nqp::null # we didn't find any coercers
}
}

Expand Down

0 comments on commit 5ed59dd

Please sign in to comment.