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

LTA error message when doing 'X of X' for undeclared X in signature in Rakudo #2946

Closed
p6rt opened this issue Oct 21, 2012 · 4 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 21, 2012

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

Searchable as RT115400$

@p6rt
Copy link
Author

p6rt commented Oct 21, 2012

From @masak

<masak> r​: sub foo(X of X) { }
<p6eval> rakudo e765c9​: OUTPUT«===SORRY!===␤Method 'parameterize' not
found for invocant of class 'Perl6​::Metamodel​::PackageHOW'␤»
* masak submits rakudobug
<masak> std​: sub foo(X of X) { }
<p6eval> std 64edd1c​: OUTPUT«===SORRY!===␤In parameter declaration,
typename 'X' must be predeclared (or marked as declarative with :​:
prefix) [...] FAILED 00​:00 42m␤»

I prefer STD.pm6's error message here. Rakudo's error message feels
like an internal leakage of some kind.

Courtesy of diakopter++.

@p6rt
Copy link
Author

p6rt commented Jul 15, 2015

From @jnthn

On Sun Oct 21 02​:45​:27 2012, masak wrote​:

<masak> r​: sub foo(X of X) { }
<p6eval> rakudo e765c9​: OUTPUT«===SORRY!===␤Method 'parameterize' not
found for invocant of class 'Perl6​::Metamodel​::PackageHOW'␤»
* masak submits rakudobug
<masak> std​: sub foo(X of X) { }
<p6eval> std 64edd1c​: OUTPUT«===SORRY!===␤In parameter declaration,
typename 'X' must be predeclared (or marked as declarative with :​:
prefix) [...] FAILED 00​:00 42m␤»

STD doesn't know about the X exception package, however. Anyway, now there's a good error​:

$ perl6-m -e "sub foo(X of X) { }"
===SORRY!=== Error while compiling -e
X cannot be parameterized
at -e​:1
------> sub foo(X of X<HERE>) { }

Tests in S32-misc/exceptions.t.

@p6rt
Copy link
Author

p6rt commented Jul 15, 2015

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

@p6rt
Copy link
Author

p6rt commented Jul 15, 2015

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

@p6rt p6rt closed this as completed Jul 15, 2015
@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