if exists $args{coerce};
if (exists $args{isa}) {
+ confess "Mouse does not yet support parameterized types (rt.cpan.org #39795)"
+ if $args{isa} =~ /\[.*\]/;
+
my $type_constraint = delete $args{isa};
$type_constraint =~ s/\s//g;
my @type_constraints = split /\|/, $type_constraint;
--- /dev/null
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More tests => 1;
+use Test::Exception;
+
+TODO: {
+ local $TODO = "Mouse does not support parameterized types yet";
+
+ eval {
+ package Foo;
+ use Mouse;
+
+ has foo => (
+ is => 'ro',
+ isa => 'HashRef[Int]',
+ );
+ };
+
+ ok(Foo->meta->has_attribute('foo'));
+};
+