Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix compilation of "is endsym"

  • Loading branch information...
commit e9ac09d2ff7dc8180a6972c905f7bd98fd984e5b 1 parent f54066a
@sorear authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/NieczaActions.pm6
View
6 src/NieczaActions.pm6
@@ -3555,10 +3555,10 @@ method trait_mod:is ($/) {
$noparm = 'Export tags NYI';
} elsif $trait eq 'endsym' {
my $text;
- if !$<circumfix> || !$<circumfix>.ast.^isa($OpStringLiteral) {
- $/.CURSOR.sorry("Argument to endsym must be a literal string");
+ if !$<circumfix> {
+ $/.CURSOR.sorry("Argument to endsym must be provided");
} else {
- $text = $<circumfix>.ast.text;
+ $text = self.eval_ast_str($/, $<circumfix>.ast) // '';
}
make { endsym => $text };
} elsif $trait eq 'rawcall' {
Please sign in to comment.
Something went wrong with that request. Please try again.