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

type smileys don't work on ::?CLASS #5812

Open
p6rt opened this issue Nov 22, 2016 · 1 comment
Open

type smileys don't work on ::?CLASS #5812

p6rt opened this issue Nov 22, 2016 · 1 comment
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented Nov 22, 2016

Migrated from rt.perl.org#130151 (status was 'new')

Searchable as RT130151$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Nov 22, 2016

From @zoffixznet

m​: class C { method foo (--> :​:?CLASS​:D) { self } }; say .foo given C
rakudo-moar 080630​: OUTPUT«(C)␤»

Expected​: typecheck failure, since `self` is not :D

And using :​:?CLASS​:D in the body of the method errors out, saying you
can't adverb :​:?CLASS​:

m​: class C { method foo (--> :​:?CLASS​:D) { say (​::?CLASS​:D).HOW; self;
} }; say .foo given C
rakudo-moar 080630​: OUTPUT«5===SORRY!5=== Error while compiling
<tmp>␤You can't adverb :​:?CLASS␤at <tmp>​:1␤------> 3d foo (-->
:​:?CLASS​:D) { say (​::?CLASS​:D7⏏5).HOW; self; } }; say .foo given C␤
expecting any of​:␤ pair value␤»

https://irclog.perlgeek.de/perl6/2016-11-22#i_13611710

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.