Skip to content

Commit

Permalink
RakuAST: change is type test to something matching experience
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Mar 12, 2023
1 parent d96a1b9 commit bd23fda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Raku/Grammar.nqp
Expand Up @@ -1769,7 +1769,8 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common {
'(' <.ws> [
|| <accept=.maybe_typename> <?{
my $it := $<accept>.ast;
!nqp::can($it,"name") || $*R.is-name-type($it.name)
nqp::istype($it,self.actions.r('Type','Coercion'))
|| $*R.is-name-type($it.name)
}>
|| $<accept_any>=<?>
] <.ws> ')'
Expand Down

0 comments on commit bd23fda

Please sign in to comment.