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
Matching against a method produces the wrong result in Rakudo #383
Comments
From @masakRakudo r32247 does the wrong thing when matching a something against $ perl6 -e 'class A { method alwaystrue { return 1 } }; given A.new { According to the big matching table in S03, this should always print 1: Any .foo method truth ?X i.e. ?.foo |
@pmichaud - Status changed from 'new' to 'open' |
From @jnthnOn Fri Oct 31 06:31:53 2008, masak wrote:
I think what that actually implies, looking at the table headings, is So now this prints: Method 'alwaystrue' not found for invocant of class 'Str' And chains of predicate tests: class A { Will now also work; this outputs: Considering 0 So, committed in git 74d73d9, and assigning to moritz++ for tests. Thanks, Jonathan |
From @moritzAdded tests to smartchmatch.t |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#60258 (status was 'resolved')
Searchable as RT60258$
The text was updated successfully, but these errors were encountered: