From: Dave Rolsky Date: Wed, 28 Jan 2009 19:04:04 +0000 (+0000) Subject: Doh, forgot to actually add the doc change from the last checkin X-Git-Tag: 0.66~29 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4e8a0f6483d92d6439cca3ca51850905f7bdc819;p=gitmo%2FMoose.git Doh, forgot to actually add the doc change from the last checkin --- diff --git a/lib/Moose/Util/TypeConstraints.pm b/lib/Moose/Util/TypeConstraints.pm index ca297d1..33d8ef4 100644 --- a/lib/Moose/Util/TypeConstraints.pm +++ b/lib/Moose/Util/TypeConstraints.pm @@ -763,6 +763,10 @@ parameterized, this means you can say: HashRef[CodeRef] # a hash of str to CODE ref mappings Maybe[Str] # value may be a string, may be undefined +If Moose finds a name in brackets that it does not recognize as an +existing type, it assumes that this is a class name, for example +C. + B Unless you parameterize a type, then it is invalid to include the square brackets. I.e. C will be literally interpreted as a type name.