Test execution of stub meta methods after the stub functions got defined.
[gitmo/Class-MOP.git] / bench / lib / MOP / Immutable / Point3D.pm
CommitLineData
857f87a7 1
2package MOP::Immutable::Point3D;
3
4use strict;
5use warnings;
6use metaclass;
7
8use base 'MOP::Point';
9
10__PACKAGE__->meta->add_attribute('z' => (accessor => 'z'));
11
12sub clear {
13 my $self = shift;
14 $self->SUPER::clear();
15 $self->z(0);
16}
17
18__PACKAGE__->meta->make_immutable;
19
201;
21
22__END__