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
<masak> rakudo: subset Foo of Array where { .elems == 5 }; sub bar(Foo
$_) {}; bar([1,2,3])
<p6eval> rakudo cb4521: OUTPUT«Nominal type check failed for parameter
'$_'; expected Array but got Array instead [...]
* masak submits rakudobug
<masak> it's not the nominal typecheck that fails, it's... the other one.
<masak> the one with the where clause, whatever it's called.
<masak> rakudo: subset Foo of Array where { .elems == 5 }; sub bar(Foo
$_) {}; bar([1,2,3])
<p6eval> rakudo cb4521: OUTPUT«Nominal type check failed for parameter
'$_'; expected Array but got Array instead [...]
* masak submits rakudobug
<masak> it's not the nominal typecheck that fails, it's... the other one.
<masak> the one with the where clause, whatever it's called.
Fixed now:
C:\Consulting\rakudo>type test.p6
subset Foo of Array where { .elems == 5 };
sub bar(Foo $x) {};
bar([1,2,3]);
C:\Consulting\rakudo>perl6 test.p6
Constraint type check failed for parameter '$x'
in 'bar' at line 2:test.p6
in main program body at line 3:test.p6
Migrated from rt.perl.org#74348 (status was 'resolved')
Searchable as RT74348$
The text was updated successfully, but these errors were encountered: