RT for rt.cpan.org
Skip Menu
|
Bug #86233 for Type-Tiny: "Cannot inline type constraint check" erro with compile and Dict
Active bugs
Resolved bugs
Rejected bugs
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)
History
Show all quoted text
Tue Jun 18 10:23:52 2013
MMCLERIC [...] cpan.org - Ticket created
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.
Tue Jun 18 10:24:31 2013
MMCLERIC [...] cpan.org - Correspondence added
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]);
Tue Jun 18 10:52:13 2013
perl [...] toby.ink - Correspondence added
Yes, it looks like something similar. As a workaround, try: declare Login, as StrMatch[ qr/^\w+$/ ]; StrMatch has built-in inlining gubbins.
Tue Jun 18 10:52:13 2013
The RT System itself - Status changed from 'new' to 'open'
Tue Jun 18 10:52:30 2013
perl [...] toby.ink - Taken
Tue Jun 18 15:43:07 2013
perl [...] toby.ink - Correspondence added
Fixed in repo
https://github.com/tobyink/p5-type-tiny/commit/c6b6745b9bc99904c2c368bf882173a8c3a8cccd
Tue Jun 18 15:43:07 2013
perl [...] toby.ink - Status changed from 'open' to 'patched'
Tue Jun 18 17:25:22 2013
perl [...] toby.ink - Correspondence added
Fix is in 0.007_09 developer version.
Fri Jun 21 08:27:08 2013
perl [...] toby.ink - Correspondence added
Fixed in 0.008.
Fri Jun 21 08:27:09 2013
perl [...] toby.ink - Status changed from 'patched' to 'resolved'