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

error message when trying to use ? on ~ in a regex (/ ‘[’ ~? ‘]’ . /) #6086

Closed
p6rt opened this issue Feb 18, 2017 · 4 comments
Closed
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Feb 18, 2017

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

Searchable as RT130812$

@p6rt
Copy link
Author

p6rt commented Feb 18, 2017

From @AlexDaniel

Code​:
�[a]� ~~ / �[� ~? �]� . /

Result​:
===SORRY!===
Cannot find method 'rxtype' on object of type NQPMu

It should at least print the line number.

@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

From @jnthn

On Sat, 18 Feb 2017 14​:22​:50 -0800, alex.jakimenko@​gmail.com wrote​:

Code​:
�[a]� ~~ / �[� ~? �]� . /

Result​:
===SORRY!===
Cannot find method 'rxtype' on object of type NQPMu

It should at least print the line number.

Fixed to show the correct error​:

$ ./perl6-m -e '�[a]� ~~ / �[� ~? �]� . /'
===SORRY!=== Error while compiling -e
Quantifier quantifies nothing
at -e​:1
------> �[a]� ~~ / �[� ~?� �]� . /

Test added in S05-metachars/tilde.t.

@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

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

@p6rt p6rt closed this as completed Feb 22, 2017
@p6rt
Copy link
Author

p6rt commented Feb 22, 2017

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

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better
Projects
None yet
Development

No branches or pull requests

1 participant