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

Internal Parrot error when declaring an attribute inside a sub inside a class in Rakudo #2644

Closed
p6rt opened this issue Feb 7, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Feb 7, 2012

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

Searchable as RT110096$

@p6rt
Copy link
Author

p6rt commented Feb 7, 2012

From @masak

<moritz> nom​: class A { sub f { has $.x } }
<p6eval> nom a0a467​: OUTPUT«use of uninitialized value of type Mu in
string context␤use of uninitialized value of type Mu in string
context␤===SORRY!===␤error​:imcc​:syntax error, unexpected '\n'␤
in file '(file unknown)' line 488␤␤»
<moritz> wow :-)
<benabik> imcc syntax error?
<[Coke]> moritz++ #well played, sir.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Feb 10, 2012

From @jnthn

On Tue Feb 07 13​:20​:47 2012, masak wrote​:

<moritz> nom​: class A { sub f { has $.x } }
<p6eval> nom a0a467​: OUTPUT«use of uninitialized value of type Mu in
string context␤use of uninitialized value of type Mu in string
context␤===SORRY!===␤error​:imcc​:syntax error, unexpected '\n'␤
in file '(file unknown)' line 488␤␤»
<moritz> wow :-)
<benabik> imcc syntax error?
<[Coke]> moritz++ #well played, sir.
* masak submits rakudobug

Now​:

class A { sub f { has $.x } }
A()
A.new(x => 42).x.say
42

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Feb 10, 2012

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

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

From @moritz

Now tested in S12-attributes/instance.t

@p6rt
Copy link
Author

p6rt commented Jan 4, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant