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

Missing line no. in "Cannot assign to a readonly variable or a value" #2799

Closed
p6rt opened this issue Jun 26, 2012 · 3 comments
Closed

Missing line no. in "Cannot assign to a readonly variable or a value" #2799

p6rt opened this issue Jun 26, 2012 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Jun 26, 2012

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

Searchable as RT113848$

@p6rt
Copy link
Author

p6rt commented Jun 26, 2012

From @Siddhant

  $ cat error.pl
  class foo {
  has $.x;
  }

  my $obj = foo.new;

  $obj.x = 42;

  $ perl6 error.pl
  Cannot assign to a readonly variable or a value // needs a
line no. here
  in block <anon> at error.pl​:1

  $ perl6 --version
  This is perl6 version 2012.06-14-gdba6e9c built on parrot 4.5.0
revision RELEASE_4_5_0

@p6rt
Copy link
Author

p6rt commented Jun 26, 2012

From @moritz

Thanks for your report. It turned out that the problem was generally
with assignment to non-variables, not just to read-only accessors.

Fixed in rakudo/rakudo@1ffd6cf137, and tested
in integration/error-reporting.t.

@p6rt
Copy link
Author

p6rt commented Jun 26, 2012

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

@p6rt p6rt closed this as completed Jun 26, 2012
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