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
names starting with 'q' confuse Rakudo, instead of being parsed as sub names #1680
Comments
From @moritz11:57 < sundar> It seems quit is recognized as something special, given it |
From @masak<masak> std: subset Quad of Any; sub classify($_) { when Quad {}; when Quad {} } I, um... what? |
From sundaryourfriend@gmail.comOn Tue Apr 13 06:18:16 2010, masak wrote:
This seems to happen with the usage of anything that starts with Q or q. <sundar> rakudo: class Mill {}; my $a = Mill.new(); <sundar> rakudo: sub mill {say "OH HAI"}; mill; Curiously, the sub works if we call it with parenthesis. <sundar> rakudo: sub quill {say "OH HAI"}; quill(); |
The RT System itself - Status changed from 'new' to 'open' |
From arnsholt@gmail.comThis is either an NQP bug, or an identical bug as one in NQP. I'm |
From @pmichaudNow fixed in cd2d123. Assigning to moritz for spectest verification. Pm |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-names_and_variables/names.t commit 6d7027ab9bb8b4a6c73582569e1d2732dbe4d723 [t/spec] test for RT #74276, names starting with Q Inline Patchdiff --git a/t/spec/S02-names_and_variables/names.t b/t/spec/S02-names_and_variables/names.t
index 2b4bdac..b72580e 100644
--- a/t/spec/S02-names_and_variables/names.t
+++ b/t/spec/S02-names_and_variables/names.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 22;
+plan 23;
# I'm using semi-random nouns for variable names since I'm tired of foo/bar/baz and alpha/beta/...
@@ -77,4 +77,11 @@ plan 22;
'error message mentions name not recognized, no maximum recursion depth exceeded';
}
+# RT #74276
+# Rakudo had troubles with names starting with Q
+{
+ eval_lives_ok 'class Quox { }; Quox.new', 'class names can start with Q';
+
+}
+
# vim: ft=perl6 |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#74276 (status was 'resolved')
Searchable as RT74276$
The text was updated successfully, but these errors were encountered: