running pugs 6.2.1
If I run the code below in a file "test.pugs" as
> pugs -c test.pugs
I get "test.pugs syntax OK", which is fine.
### CODE ###
module MyFoo-0.01;
class MyFoo;
multi method new (Class $class: $date) {
return $class.new({date => $date})
};
method foo {
#whatever
}
### END OF CODE ###
If I add a semicolon at the end of the "return" statement, I get the
following error:
*** Error:
unexpected "{"
expecting adverbial block, term postfix, operator, ",", ":", postfix conditional
, postfix loop, postfix iteration, ";" or end of input
at test.pugs at line 4, column 40
Alternately, if I remove the semicolon after the closing curly of the
"multi method new" declaration, I get this error:
d:\Documents and Settings\Carl Franks\My Documents\checkout\perl6>pugs -c test.p
ugs
*** Error:
unexpected "m"
expecting operator, ",", ":", term postfix, postfix conditional, postfix loop, p
ostfix iteration, ";" or end of input
at test.pugs at line 9, column 1
Am I in error, or is it an issue with pugs?
Cheers,
Carl Franks