2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
14 use overload '""' => sub {''};
18 __PACKAGE__->meta->make_immutable;
21 ok(Foo->new()->bug(), 'call constructor on object reference with overloading');