Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTA error/behaviour in `.trans` with Cool substitutors #2305

Open
zoffixznet opened this issue Sep 22, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@zoffixznet
Copy link
Contributor

commented Sep 22, 2018

The LTA error is the mention of mysterious parameter 'x' that isn't present anywhere in user's code. However, IMO it's LTA behaviour that you can actually call .trans on Cool yet cannot use a Cool as part one of the substitutors in the arguments.

1213    @Zoffix │ m: 4200.trans: 42 => 14                                                                     │+undersightable6
1213   +camelia │ rakudo-moar b22edce40: OUTPUT: «Type check failed in binding to parameter 'x'; expected Str │+unicodable6
                │ but got Int (42)␤  in block <unit> at <tmp> line 1␤␤»                                       │+ZofBot 
1213    @Zoffix │ m: 4200.trans: "42" => 14                                                                   │+Zoffix_
1213   +camelia │ rakudo-moar b22edce40: OUTPUT: «Type check failed in binding to parameter 'x'; expected Str │
                │ but got Int (14)␤  in block <unit> at <tmp> line 1␤␤»                                       │
1213    @Zoffix │ m: 4200.trans: "42" => "14"                                                                 │
1213   +camelia │ rakudo-moar b22edce40: ( no output )             
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.