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
Smartmatching against a type yields an Int, not a Bool in Rakudo #1449
Comments
From @masak<masak> rakudo: say (* ~~ Whatever).WHAT |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-builtin_data_types/bool.t commit 077e91aaf96664bf4de7492b76eaf5980f6a6656 [t/spec] Test for RT 71462: Smartmatch a type yields Int, not Bool Inline Patchdiff --git a/t/spec/S02-builtin_data_types/bool.t b/t/spec/S02-builtin_data_types/bool.t
index af6876a..2129c0b 100644
--- a/t/spec/S02-builtin_data_types/bool.t
+++ b/t/spec/S02-builtin_data_types/bool.t
@@ -66,6 +66,9 @@ is(--$bool, Bool::False, 'Decrement of Bool::False produces Bool::False');
is Bool::False.key, 'False', 'Bool::False.key works (is "False")';
}
+#?rakudo todo 'RT 71462: Smartmatch a type yields Int, not a Bool'
+isa_ok ('RT71462' ~~ Str), Bool;
+
done_testing;
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @pmichaudNow fixed in a579f8e. Closing ticket. Pm |
1 similar comment
From @pmichaudNow fixed in a579f8e. Closing ticket. Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
From @masakOn Sat Jun 26 11:43:15 2010, pmichaud wrote:
<masonkramer> How do I see if a thing does Callable? |
@masak - Status changed from 'resolved' to 'open' |
From @KodiologistAs of Rakudo 7fd3dea4a4d2, this should be fixed for good. Note that See S03-smartmatch/any-type.t (roast 2167a018e61) for tests. |
@Kodiologist - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#71462 (status was 'resolved')
Searchable as RT71462$
The text was updated successfully, but these errors were encountered: