Open brickpool opened 3 years ago
method bar() = self->foo();
Should be $self
?
method bar() = self->foo();
Should be
$self
?
Yes, that's right, there is a typo in my message. The script uses $self
. Here as copy & paste
package Pod {
use Zydeco;
class Test {
has foo = 0;
method bar() = $self->foo();
;#fix pod bug
=pod
=cut
method baz() = $self->foo();
}
}
use strict;
use warnings;
use Test::More;
isa_ok Pod::Test->new(), 'Pod::Test';
done_testing;
A syntax error is generated when using inline POD.
I have created the following small test script.
This is the associated error message
I am using the current Zydeco library version and Perl version 5.26.3. Compiling and testing succeeds without a POD or if line 6 is changed as follows:
or
Please note that in this case the additional semicolon must be used at the end.