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
<ShimmerFairy> m: my @*A := 42
<camelia> rakudo-moar bad9be: ( no output )
<ShimmerFairy> m: my %*A := 42
<camelia> rakudo-moar bad9be: ( no output )
<ShimmerFairy> m: my &*A := 42
<camelia> rakudo-moar bad9be: ( no output )
The expected behavior:
<ShimmerFairy> m: my @A := 42
<camelia> rakudo-moar bad9be: OUTPUT«Type check failed in binding; expected Positional but got Int in block <unit> at /tmp/T2aUUQrbL2:1»
<ShimmerFairy> m: my %A := 42
<camelia> rakudo-moar bad9be: OUTPUT«Type check failed in binding; expected Associative but got Int in block <unit> at /tmp/R8h3mTS3Ao:1»
<ShimmerFairy> m: my &A := 42
<camelia> rakudo-moar bad9be: OUTPUT«Type check failed in binding; expected Callable but got Int in block <unit> at /tmp/htfXw0lr56:1»
Apparently rakudo's contextuals don't check binding to see if the object being bound is of the right type (Postional/Associative/Callable)
Migrated from rt.perl.org#126278 (status was 'new')
Searchable as RT126278$
The text was updated successfully, but these errors were encountered: