nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

mro cannot use next::method in a compiled binary #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Compile the script
________

package Master;
use mro 'c3';

sub me { 'Master' }

package Slave;
use mro 'c3';
use base 'Master';
sub me { 'Slave of '.(shift)->next::method }

package main;

print Master->me()."\n";
print Slave->me()."\n";

__END___

What is the expected output? 

> perl script.pl
Master
Slave of Master

What do you see instead?

> perlcc script.pl && ./script
Master
Can't locate object method "method" via package "next" (perhaps you forgot to 
load "next"?) at t/CORE-CPANEL/mro/next_NEXT.t line 18.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nicolas....@gmail.com on 8 May 2014 at 8:53

GoogleCodeExporter commented 9 years ago
Issue 301 has been merged into this issue.

Original comment by nicolas....@gmail.com on 8 May 2014 at 9:00

GoogleCodeExporter commented 9 years ago
Using issue 301 for this

Original comment by reini.urban on 9 May 2014 at 12:08

GoogleCodeExporter commented 9 years ago
Issue 325 has been merged into this issue.

Original comment by reini.urban on 9 May 2014 at 3:17