1. Toby Inkster
  2. p5-moox-late

Commits

Toby Inkster  committed a453cc6

debugging

  • Participants
  • Parent commits 3b1e5c8
  • Branches default

Comments (0)

Files changed (1)

File t/02inflation.t

View file
 	has foo => (is => 'ro', isa => 'Str', default => 'foo');
 };
 
+my $isa = "Moo"->_constructor_maker_for("Local::Class")->all_attribute_specs->{foo}{isa};
+note explain($isa);
+
 ok not eval {
-	my $obj = Local::Class->new(foo => [])
+	my $obj = "Local::Class"->new(foo => [])
 };
 
 eval {
 	require Moose;
 	
-	my $foo = Local::Class->meta->get_attribute('foo');
+	my $foo = "Local::Class"->meta->get_attribute('foo');
+	note explain($foo->type_constraint);
+	
 	is(
 		$foo->type_constraint->name,
 		'Str',