-
Notifications
You must be signed in to change notification settings - Fork 559
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/B/Deparse.pm: Don't get upset by OP_METHSTART in method subs
When encountering a `method` sub under `use feature 'class'`, we need to skip over and ignore the `OP_METHSTART` at the beginning, so we can still safely handle the signature ops. We also need to emit the declaration under a `method` keyword, rather than a `sub`.
- Loading branch information
Showing
2 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters