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

Not really good error with wrong class creation by passing a pair to a named arg to new #6482

Open
p6rt opened this issue Aug 30, 2017 · 2 comments
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Aug 30, 2017

Migrated from rt.perl.org#131998 (status was 'new')

Searchable as RT131998$

@p6rt
Copy link
Author

p6rt commented Aug 30, 2017

From @Skarsnik

<Skarsnik> m​: class A {;}; my A $a .= new(​:name​:<foo>); # lta error ?
<camelia> rakudo-moar 3e1382​: OUTPUT​: «===SORRY!===␤This type (QAST​::WVal)
does not support positional operations␤»
--
Sylvain "Skarsnik" Colinet

Victory was near but the power of the ring couldn't be undone

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@JJ
Copy link

JJ commented Dec 30, 2020

It's now returning "Malformed my":

class A {}; my A $a = A.new;

But from the CLI it works correctly; except that, as written, it ways "you can't adverb :". I would say this should be closed.

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

2 participants