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

.can doesn't see submethods in Rakudo #3647

Closed
p6rt opened this issue Jan 18, 2015 · 4 comments
Closed

.can doesn't see submethods in Rakudo #3647

p6rt opened this issue Jan 18, 2015 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 18, 2015

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

Searchable as RT123621$

@p6rt
Copy link
Author

p6rt commented Jan 18, 2015

From @masak

<moritz> m​: class A { submethod x() { say 42 } }; say A.^can("x").perl
<camelia> rakudo-moar 20d5ef​: OUTPUT«()␤»
<moritz> is that correct?
<masak> m​: class A { submethod x { say 42 } }; A.new.x
<camelia> rakudo-moar 20d5ef​: OUTPUT«42␤»
<masak> moritz​: I'd say "no", since you can call it.
<jnthn> Pretty sure that one has to be a bug.
<jnthn> I can easily imagine how it'd happen too :)
<jnthn> RT it; it's likely a very easy fix.
* masak RTs it

@p6rt
Copy link
Author

p6rt commented Jan 22, 2015

From @jnthn

On Sun Jan 18 10​:15​:24 2015, masak wrote​:

<moritz> m​: class A { submethod x() { say 42 } }; say A.^can("x").perl
<camelia> rakudo-moar 20d5ef​: OUTPUT«()␤»
<moritz> is that correct?
<masak> m​: class A { submethod x { say 42 } }; A.new.x
<camelia> rakudo-moar 20d5ef​: OUTPUT«42␤»
<masak> moritz​: I'd say "no", since you can call it.
<jnthn> Pretty sure that one has to be a bug.
<jnthn> I can easily imagine how it'd happen too :)
<jnthn> RT it; it's likely a very easy fix.
* masak RTs it

Fixed in Rakudo 98db032, tested in roast 7a8ff9e.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jan 22, 2015

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

@p6rt
Copy link
Author

p6rt commented Jan 22, 2015

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

@p6rt p6rt closed this as completed Jan 22, 2015
@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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant