Skip Menu |

This queue is for tickets about the Type-Tiny CPAN distribution.

Report information
The Basics
Id: 86233
Status: resolved
Priority: 0/
Queue: Type-Tiny

People
Owner: perl [...] toby.ink
Requestors: MMCLERIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.004
  • 0.006
  • 0.007_08
Fixed in: (no value)



Subject: "Cannot inline type constraint check" erro with compile and Dict
This might be related to RT#85911, but it's still broken on 0.007_08, so it's not the same.
On Tue Jun 18 10:23:52 2013, MMCLERIC wrote: Show quoted text
> This might be related to RT#85911, but it's still broken on 0.007_08, > so it's not the same.
Forgot to attach the test case. Here:
Subject: compile-test.pl
#!/usr/bin/env perl use strict; use warnings; package Types { use Type::Library -base, -declare => qw[ Login ]; use Type::Utils; use Types::Standard qw[ Str ]; declare Login, as Str, where { /^\w+$/ }; } use Type::Params qw[ compile ]; use Types::Standard qw[ Dict ]; compile(Dict[login => Types::Login]);
Yes, it looks like something similar. As a workaround, try: declare Login, as StrMatch[ qr/^\w+$/ ]; StrMatch has built-in inlining gubbins.
Fix is in 0.007_09 developer version.
Fixed in 0.008.