[perl #126117] [BUG] defined value as type constraint is accepted and doesn't work

2017-09-11 Thread Sam S. via RT
On Sun, 20 Sep 2015 09:17:21 -0700, zef...@fysh.org wrote: > Presumably using a defined value (anything other than a type object) > as a type constraint should be a semantic error. It does throw a compile-time error for the `my` declaration now, however the error message is not appropriate:

[perl #126117] [BUG] defined value as type constraint is accepted and doesn't work

2015-09-20 Thread via RT
# New Ticket Created by Zefram # Please include the string: [perl #126117] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126117 > How nice to be able to use a constant declaration to give a local name to a (possibly complex)