Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[v6] fix "$foo.method"
  • Loading branch information
sorear committed Nov 19, 2010
1 parent c0d8a49 commit 429442c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions v6/tryfile
Expand Up @@ -282,6 +282,10 @@ method EXPR ($preclvl?) {
sub infixstate() { #OK
$here.deb("Looking for an infix") if $DEBUG::EXPR;
return 1 if (@*MEMOS[$here.pos]<endstmt> // 0) == 2; # XXX P6
# If this isn't here, then "$foo.method" will try to parse
# .method as an infix, and panic. No infix operator is
# tighter than this anyhow.
return 1 if $preclim ge $methodcall_prec;
my ($ws) = $here.ws;
$here = $here.cursor($ws.to);
my ($infix) = $here.infixish;
Expand Down Expand Up @@ -675,6 +679,7 @@ sub compiler(:$filename, :$text, :$settingname) {
my $*IN_SUPPOSE = 0;
my $*FATALS = 0;

$DEBUG::EXPR = False;
$STD::DEBUG::EXPR = False;
$STD::DEBUG::symtab = False;

Expand Down

0 comments on commit 429442c

Please sign in to comment.