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

({a=>1} but 'bar') is broken #2875

Closed
p6rt opened this issue Aug 29, 2012 · 4 comments
Closed

({a=>1} but 'bar') is broken #2875

p6rt opened this issue Aug 29, 2012 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Aug 29, 2012

Migrated from rt.perl.org#114668 (status was 'resolved')

Searchable as RT114668$

@p6rt
Copy link
Author

p6rt commented Aug 29, 2012

From sirrobert@gmail.com

16​:03 < sirrobert> r​: role B { method Str () { return 'bar'; }; }; print
({a=>1} but B);
16​:03 <+p6eval> rakudo d70363​: OUTPUT«a 1»
16​:03 < sirrobert> that *should* output 'bar', right?
16​:03 < sorear> n​: role B { method Str () { return 'bar'; }; }; print
({a=>1} but B);
16​:03 <+p6eval> niecza v21-1-ga8aa70b​: OUTPUT«bar»
16​:04 < sorear> I say it should output bar, yes
16​:04 < sorear> note that you can shorten tis to
16​:04 < sorear> n​: print ({a=>1} but 'bar')
16​:04 <+p6eval> niecza v21-1-ga8aa70b​: OUTPUT«bar»
16​:04 < moritz> r​: print ({a => 1 } but 'bar')
16​:04 <+p6eval> rakudo d70363​: OUTPUT«a 1»
16​:08 < moritz> r​: say ({ a => 1 } but 'foo') ~~ Str
16​:08 <+p6eval> rakudo d70363​: OUTPUT«False␤»
16​:08 < moritz> if that were true, I'd understand how something funky could
have happened
16​:10 < sirrobert> moritz​: want me to file that, or do you have it?
16​:11 < moritz> sirrobert​: please do
16​:11 < sirrobert> ok

@p6rt
Copy link
Author

p6rt commented May 1, 2015

From @jnthn

On Wed Aug 29 13​:15​:25 2012, sirrobert@​gmail.com wrote​:

16​:03 < sirrobert> r​: role B { method Str () { return 'bar'; }; }; print
({a=>1} but B);
16​:03 <+p6eval> rakudo d70363​: OUTPUT«a 1»
16​:03 < sirrobert> that *should* output 'bar', right?
16​:03 < sorear> n​: role B { method Str () { return 'bar'; }; }; print
({a=>1} but B);
16​:03 <+p6eval> niecza v21-1-ga8aa70b​: OUTPUT«bar»
16​:04 < sorear> I say it should output bar, yes
16​:04 < sorear> note that you can shorten tis to
16​:04 < sorear> n​: print ({a=>1} but 'bar')
16​:04 <+p6eval> niecza v21-1-ga8aa70b​: OUTPUT«bar»
16​:04 < moritz> r​: print ({a => 1 } but 'bar')
16​:04 <+p6eval> rakudo d70363​: OUTPUT«a 1»
16​:08 < moritz> r​: say ({ a => 1 } but 'foo') ~~ Str
16​:08 <+p6eval> rakudo d70363​: OUTPUT«False␤»
16​:08 < moritz> if that were true, I'd understand how something funky could
have happened
16​:10 < sirrobert> moritz​: want me to file that, or do you have it?
16​:11 < moritz> sirrobert​: please do
16​:11 < sirrobert> ok

Seems this was fixed a while ago, probably during the last round of parametrics work. Added tests to cover it in S14-roles/mixin.t.

@p6rt
Copy link
Author

p6rt commented May 1, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt closed this as completed May 1, 2015
@p6rt
Copy link
Author

p6rt commented May 1, 2015

@jnthn - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant