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

:U smiley shows weird error when .WHAT is called #5214

Closed
p6rt opened this issue Apr 5, 2016 · 4 comments
Closed

:U smiley shows weird error when .WHAT is called #5214

p6rt opened this issue Apr 5, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Apr 5, 2016

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

Searchable as RT127841$

@p6rt
Copy link
Author

p6rt commented Apr 5, 2016

From @zoffixznet

As seen from the code evals below, applying a :U smiley on a variable and then trying to see .WHAT it is shows an error​:

<ZoffixW> m​: my Int​:U $x; say $x.WHAT
<camelia> rakudo-moar 600eb5​: OUTPUT«Method 'shortname' not found for invocant of class 'Perl6​::Metamodel​::DefiniteHOW'␤ in block <unit> at /tmp/f25jG54p5v line 1␤␤»
<ZoffixW> m​: my Any​:U $x; say $x
<camelia> rakudo-moar 600eb5​: OUTPUT«Method 'shortname' not found for invocant of class 'Perl6​::Metamodel​::DefiniteHOW'␤ in block <unit> at /tmp/93HKLtR89U line 1␤␤»

@p6rt
Copy link
Author

p6rt commented Apr 5, 2016

From @moritz

On Tue Apr 05 12​:00​:17 2016, cpan@​zoffix.com wrote​:

As seen from the code evals below, applying a :U smiley on a variable
and then trying to see .WHAT it is shows an error​:

<ZoffixW> m​: my Int​:U $x; say $x.WHAT
<camelia> rakudo-moar 600eb5​: OUTPUT«Method 'shortname' not found for
invocant of class 'Perl6​::Metamodel​::DefiniteHOW'␤ in block <unit> at
/tmp/f25jG54p5v line 1␤␤»
<ZoffixW> m​: my Any​:U $x; say $x
<camelia> rakudo-moar 600eb5​: OUTPUT«Method 'shortname' not found for
invocant of class 'Perl6​::Metamodel​::DefiniteHOW'␤ in block <unit> at
/tmp/93HKLtR89U line 1␤␤»

Fix with this pull request​: rakudo/rakudo#701

And tested here​: Raku/roast@e7fb85a521

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Apr 5, 2016

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

@p6rt p6rt closed this as completed Apr 5, 2016
@p6rt
Copy link
Author

p6rt commented Apr 5, 2016

@moritz - 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