# New Ticket Created by  "Carl Mäsak" 
# Please include the string:  [perl #66520]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=66520 >


In Rakudo 86aeafb, a file with a user-defined operator sub runs fine,
but fails with --target=parse:

$ cat factorial
sub postfix:<!>(Int $n) {
    [*] 1..$n;
}
say 5!;
$ perl6 factorial
120
$ perl6 --target=parse factorial
Statement not terminated properly at line 5, near "!;\n"
in Main (src/gen_setting.pm:0)

Reply via email to