From 53617281749f123de4da146e810fd892c1a28dd3 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 25 May 2011 19:36:49 -0500 Subject: ensure classes corresponding to class types are loaded otherwise, type inference doesn't work --- t/lib/Inferred/Foo.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 t/lib/Inferred/Foo.pm (limited to 't/lib/Inferred/Foo.pm') diff --git a/t/lib/Inferred/Foo.pm b/t/lib/Inferred/Foo.pm new file mode 100644 index 0000000..af60637 --- /dev/null +++ b/t/lib/Inferred/Foo.pm @@ -0,0 +1,13 @@ +package Inferred::Foo; +use Moose; + +has bar => ( + is => 'ro', + isa => 'Inferred::Bar', + required => 1, +); + +__PACKAGE__->meta->make_immutable; +no Moose; + +1; -- cgit v1.2.3-54-g00ecf