Union types look at all member types when determining if they're a subtype of something
authorDave Rolsky <autarch@urth.org>
Fri, 16 Sep 2011 13:37:15 +0000 (08:37 -0500)
committerJesse Luehrs <doy@tozt.net>
Sat, 17 Sep 2011 18:54:19 +0000 (13:54 -0500)
commita93d14d12227126813af4aa7f1caffd065820d6a
tree745ec1201dcce4f4546f5a0c1eb5d1937a460839
parent155749f2d544ee152d721a362b62f9158875173c
Union types look at all member types when determining if they're a subtype of something

In other words, "Int|ClassName" is not a subtype of Num, but it is a subtype of Item.
lib/Moose/Meta/TypeConstraint/Union.pm
t/type_constraints/union_is_a_type_of.t [new file with mode: 0644]