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

Rakudo dies when A is mentioned after declaring A::B #667

Closed
p6rt opened this issue Jan 29, 2009 · 6 comments
Closed

Rakudo dies when A is mentioned after declaring A::B #667

p6rt opened this issue Jan 29, 2009 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jan 29, 2009

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

Searchable as RT62900$

@p6rt
Copy link
Author

p6rt commented Jan 29, 2009

From @masak

<masak> rakudo​: role A​::B {}; say 42 ~~ A
<p6eval> rakudo 36143​: OUTPUT«invoke() not implemented in class 'NameSpace [...]
* masak submits rakudobug
<masak> rakudo​: role A​::B {}; A
<p6eval> rakudo 36143​: OUTPUT«invoke() not implemented in class
'NameSpace' [...]

@p6rt
Copy link
Author

p6rt commented Jan 29, 2009

From @masak

masak (>)​:

<masak> rakudo​: role A​::B {}; say 42 ~~ A
<p6eval> rakudo 36143​: OUTPUT«invoke() not implemented in class
'NameSpace [...]
* masak submits rakudobug
<masak> rakudo​: role A​::B {}; A
<p6eval> rakudo 36143​: OUTPUT«invoke() not implemented in class
'NameSpace' [...]

Related​:

<masak> rakudo​: class A​::B {}; my A $a
<p6eval> rakudo 36143​: OUTPUT«Scope not found for PAST​::Var '$a' in [...]

@p6rt
Copy link
Author

p6rt commented Jan 29, 2009

From [Unknown Contact. See original ticket]

masak (>)​:

<masak> rakudo​: role A​::B {}; say 42 ~~ A
<p6eval> rakudo 36143​: OUTPUT«invoke() not implemented in class
'NameSpace [...]
* masak submits rakudobug
<masak> rakudo​: role A​::B {}; A
<p6eval> rakudo 36143​: OUTPUT«invoke() not implemented in class
'NameSpace' [...]

Related​:

<masak> rakudo​: class A​::B {}; my A $a
<p6eval> rakudo 36143​: OUTPUT«Scope not found for PAST​::Var '$a' in [...]

@p6rt
Copy link
Author

p6rt commented Jan 29, 2009

@masak - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Apr 30, 2010

From @bbkr

Correct error messages are now in place​:

[15​:46] <bbkr> rakudo​: class A​::B {}; my A $a;
[15​:46] <p6eval> rakudo c4857a​: OUTPUT«In "my" declaration, typename A
must be predeclared (or marked as declarative with :​: prefix) at line
11, near " $a;"␤current instr.​: 'perl6;HLL;Grammar;panic' pc 500
(ext/nqp-rx/src/stage0/HLL-s0.pir​:328)␤»
[15​:48] <bbkr> rakudo​: role A​::B {}; say 42 ~~ A
[15​:48] <p6eval> rakudo c4857a​: OUTPUT«Could not find sub &A␤current
instr.​: '_block14' pc 29 (EVAL_1​:0)␤»

It's another ticket of type "Rakudo trying to access not declared
class/method", and tests are already in S12.

@p6rt
Copy link
Author

p6rt commented Apr 30, 2010

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

@p6rt p6rt closed this as completed Apr 30, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant