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

'0 but True' causes a no-applicable-candidates error in Rakudo #1511

Closed
p6rt opened this issue Feb 15, 2010 · 5 comments
Closed

'0 but True' causes a no-applicable-candidates error in Rakudo #1511

p6rt opened this issue Feb 15, 2010 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Feb 15, 2010

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

Searchable as RT72848$

@p6rt
Copy link
Author

p6rt commented Feb 15, 2010

From @masak

<masak> rakudo​: 0 but True
<p6eval> rakudo 70667a​: OUTPUT«No applicable candidates found to
dispatch to for 'infix​:<does>'
* masak submits rakudobug

Various Sxx documents refer to this construct, so it should not error out.

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @bbkr

Does not crash on Kiev build.
Tests added to S14-roles/basic.t

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

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

@p6rt p6rt closed this as completed Jun 28, 2010
@p6rt
Copy link
Author

p6rt commented Jun 28, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S14-roles/basic.t

commit d597d7e732f5f3117590d5ab1721d876ca2aa413
Author​: bbkr <bbkr@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Mon Jun 28 23​:42​:45 2010 +0000

  [t/spec] tests for RT #​72848 "0 but True" causes a no-applicable-candidates error in Rakudo
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;31494 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S14-roles/basic.t b/t/spec/S14-roles/basic.t
index 04a81f4..012fb14 100644
--- a/t/spec/S14-roles/basic.t
+++ b/t/spec/S14-roles/basic.t
@@ -137,6 +137,9 @@ eval_dies_ok '0 but RT66178', '"but" with non-existent role dies';
         'default role stringification contains role name';
 }
 
+# RT #72848
+lives_ok {0 but True}, '0 but True has applicable candidate';
+
 done_testing;
 
 # vim: ft=perl6

@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