You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to deparse a method of a class produces a message and incorrect code:
$ ./perl -Ilib -Mfeature=class -MO=Deparse -e 'class A { method b {} }'
class is experimental at -e line 1.
method is experimental at -e line 1.
unexpected OP_METHSTART at lib/B/Deparse.pm line 1677.
use feature 'class';
{
();
package A;
sub b : method {
XXX;
();
}
}
-e syntax OK
fields are also not deparsed:
$ ./perl -Ilib -Mfeature=class -MO=Deparse -e 'class A { field $x; method x { $x } }'
class is experimental at -e line 1.
field is experimental at -e line 1.
method is experimental at -e line 1.
unexpected OP_METHSTART at lib/B/Deparse.pm line 1677.
use feature 'class';
{
package A;
;
sub x : method {
XXX;
$x;
}
}
-e syntax OK
Steps to Reproduce
See above.
Expected behavior
Deparse handles the OP_METHSTART and emits the field declarations.
Module:
Trying to deparse a method of a class produces a message and incorrect code:
fields are also not deparsed:
Steps to Reproduce
See above.
Expected behavior
Deparse handles the OP_METHSTART and emits the field declarations.
Perl configuration
The text was updated successfully, but these errors were encountered: