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

--target=ast generating error or warning #4801

Closed
p6rt opened this issue Nov 30, 2015 · 2 comments
Closed

--target=ast generating error or warning #4801

p6rt opened this issue Nov 30, 2015 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 30, 2015

Migrated from rt.perl.org#126764 (status was 'new')

Searchable as RT126764$

@p6rt
Copy link
Author

p6rt commented Nov 30, 2015

From @jdv

# error
[jdv@​wieldy ~]$ perl6 --target=ast -e 'module m { sub infix​:<o1> {} }'
| head
===SORRY!===
Cannot unbox a type object
[jdv@​wieldy ~]$

# warning
[jdv@​wieldy ~]$ perl6 --target=ast -e 'module m { sub o1 {} }' | head
Sub object coerced to string (please use .gist or .perl to do that) in
any dump_node_list at gen/moar/stage2/QASTNode.nqp​:81
- QAST​::CompUnit
  [pre_deserialize]
  - QAST​::Stmt
  - QAST​::Stmt
  - QAST​::Op(loadbytecode)
  - QAST​::VM
  [jvm]
  - QAST​::SVal(ModuleLoader.class)
  [moar]
  - QAST​::SVal(ModuleLoader.moarvm)
[jdv@​wieldy ~]$

@p6rt p6rt added the Bug label Jan 5, 2020
@usev6
Copy link

usev6 commented Oct 11, 2023

The two commands don't generate an error or warning anymore.

Since this is a very old issue (even pre Christmas), I'll close it now.
(I don't think we need a regression test. Please reopen if you disagree.)

@usev6 usev6 closed this as completed Oct 11, 2023
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

2 participants