You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code:
class Foo { subset Limit of Rat where -10 .. 10; has Limit $.x is rw }; Foo.new( x => 15.0 );
Produces the following error:
Type check failed in assignment to $!x; expected Foo::Limit but got Rat
As a dev, I would like to know that it's the constraint that failed, but the code implies that a Rat is wrong (which is correct, but misleading to me).
Best,Ovid-- IT consulting, training, specializing in Perl, databases, and agile developmenthttp://www.allaroundtheworld.fr/.
Buy my book! - http://bit.ly/beginning_perl
p6rt
added
the
LTA
Less Than Awesome; typically an error message that could be better
label
Jan 5, 2020
Migrated from rt.perl.org#127209 (status was 'new')
Searchable as RT127209$
The text was updated successfully, but these errors were encountered: