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


Hi!

A class declaration without C<;> at the end gives a confusing error
when followed by a module declaration.
(Confusing if the class actually has several lines of content.)

Lithos


$ cat test.pl
class C { }
module M { }
$ ./perl6 test.pl
===SORRY!===
Confused at line 1, near "class C { "
$ ./perl6 --version

This is Rakudo Perl 6, version 2010.07-115-g0839993 built on parrot 2.6.0 r48341


With a semicolon at the end of the first line it works:

$ cat test.pl
class C { };
module M { }
$ ./perl6 test.pl
$

Reply via email to