Support modifier by regexp
[gitmo/Mouse.git] / t / 100_bugs / 027_constructor_object_overload.t
CommitLineData
4c98ebb0 1#!/usr/bin/perl
2use strict;
3use warnings;
4use Test::More tests => 1;
5
6{
7 package Foo;
8
9 use Mouse;
10
11 use overload '""' => sub {''};
12
13 sub bug { 'plenty' }
14
15 __PACKAGE__->meta->make_immutable;
16}
17
18ok(Foo->new()->bug(), 'call constructor on object reference with overloading');
19