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
Cannot assign a Rat to a Complex #3455
Comments
From @cokeS02-types/declare.t contains a test which relies on this working: 13:51 < [Coke]> m: my Complex $namcu =1.3; say $namcu.WHAT; -- |
From @cokeOn Sun Jul 20 10:54:43 2014, coke wrote:
15:28 < TimToady> [Coke]: I think it's fair for that to fail, and require the -- |
From @jnthnOn Thu Aug 21 12:33:48 2014, coke wrote:
By contrast, I can't be argued into making that work. :-) Type constraints should be constraints, or we can't trust them. Coercion types are spec'd for coercing, and in this case a complex literal is just:
Turns out the test isn't actually interested in coercion at all, though. It just wants to check you can assign a complex number to a variable with the Complex type - or at least, all the tests around it are doing that kind of thing. So, I got the test in line with those around it, and am rejecting the ticket. Thanks, Jonathan |
The RT System itself - Status changed from 'new' to 'open' |
@jnthn - Status changed from 'open' to 'rejected' |
Migrated from rt.perl.org#122347 (status was 'rejected')
Searchable as RT122347$
The text was updated successfully, but these errors were encountered: