Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / t / 100_bugs / 027_constructor_object_overload.t
CommitLineData
4c98ebb0 1#!/usr/bin/perl
ee5e6a03 2# This is automatically generated by author/import-moose-test.pl.
3# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4use t::lib::MooseCompat;
4c98ebb0 5use strict;
6use warnings;
ee5e6a03 7use Test::More;
4c98ebb0 8
9{
10 package Foo;
11
12 use Mouse;
13
14 use overload '""' => sub {''};
15
16 sub bug { 'plenty' }
17
18 __PACKAGE__->meta->make_immutable;
19}
20
21ok(Foo->new()->bug(), 'call constructor on object reference with overloading');
22
ee5e6a03 23done_testing;