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 error when trying to assign to an Int, Str or Num literal #2782

Closed
p6rt opened this issue Jun 6, 2012 · 6 comments
Closed

Internal error when trying to assign to an Int, Str or Num literal #2782

p6rt opened this issue Jun 6, 2012 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jun 6, 2012

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

Searchable as RT113534$

@p6rt
Copy link
Author

p6rt commented Jun 6, 2012

From @moritz

< moritz> r​: 1 = 2
<+p6eval> rakudo 8c91e1​: OUTPUT«===SORRY!===␤Method 'lvalue' not found
  for invocant of class 'Integer'␤»

With --ll-exception it seems to come from the PAST compiler​:

Method 'lvalue' not found for invocant of class 'Integer'
current instr.​: 'nqp;PAST;Compiler;bind_6model' pc 1202
(src/PAST/SixModelPASTExtensions.pir​:308)
called from Sub 'nqp;PAST;Compiler;post_children' pc 2595
(compilers/pct/src/PAST/Compiler.pir​:553)
called from Sub 'nqp;PAST;Compiler;as_post' pc 3172
(compilers/pct/src/PAST/Compiler.pir​:773)

And that's the error message I'm looking for​:

< moritz> r​: 1.0 = 2
<+p6eval> rakudo 8c91e1​: OUTPUT«Cannot assign to a non-container␤ in
  block <anon> at /tmp/4FS7Qw_leC​:1␤␤»

@p6rt
Copy link
Author

p6rt commented Jun 6, 2012

From @moritz

Tests are now in S32-exceptions/misc.t

@p6rt
Copy link
Author

p6rt commented Jun 6, 2012

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

@p6rt
Copy link
Author

p6rt commented Aug 5, 2012

From @jnthn

On Wed Jun 06 12​:37​:39 2012, moritz wrote​:

< moritz> r​: 1 = 2
<+p6eval> rakudo 8c91e1​: OUTPUT«===SORRY!===␤Method 'lvalue' not found
for invocant of class 'Integer'␤»

With --ll-exception it seems to come from the PAST compiler​:

Method 'lvalue' not found for invocant of class 'Integer'
current instr.​: 'nqp;PAST;Compiler;bind_6model' pc 1202
(src/PAST/SixModelPASTExtensions.pir​:308)
called from Sub 'nqp;PAST;Compiler;post_children' pc 2595
(compilers/pct/src/PAST/Compiler.pir​:553)
called from Sub 'nqp;PAST;Compiler;as_post' pc 3172
(compilers/pct/src/PAST/Compiler.pir​:773)

And that's the error message I'm looking for​:

< moritz> r​: 1.0 = 2
<+p6eval> rakudo 8c91e1​: OUTPUT«Cannot assign to a non-container␤ in
block <anon> at /tmp/4FS7Qw_leC​:1␤␤»

Now​:

1 = 2
Cannot assign to a non-container
1e0 = 2
Cannot assign to a non-container
'foo' = 2
Cannot assign to a non-container

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

From @moritz

Tests in S32-exceptions/misc.t unfudged.

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

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

@p6rt p6rt closed this as completed Aug 7, 2012
@p6rt p6rt added the testneeded label Jan 5, 2020
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