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=parse confused by role parameter #1928

Closed
p6rt opened this issue Jul 11, 2010 · 6 comments
Closed

--target=parse confused by role parameter #1928

p6rt opened this issue Jul 11, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jul 11, 2010

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

Searchable as RT76456$

@p6rt
Copy link
Author

p6rt commented Jul 11, 2010

From @cognominal

$ cat A.pm
role A[​::T] { }
$ perl6 A.pm
$ perl6 --target=parse A.pm
===SORRY!===
Method 'symbol' not found for invocant of class 'Undef'
$

A program with the sole :​:T has no problem

--
cognominal stef

@p6rt
Copy link
Author

p6rt commented Jul 29, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 5, 2011

From @coke

On Sat Jul 10 23​:14​:57 2010, cognominal wrote​:

$ cat A.pm
role A[​::T] { }
$ perl6 A.pm
$ perl6 --target=parse A.pm
===SORRY!===
Method 'symbol' not found for invocant of class 'Undef'
$

A program with the sole :​:T has no problem

Error message has changed​:

$ perl6 --target=parse A.pm
===SORRY!===
Could not locate compile-time value for symbol StaticLexPad

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 11, 2013

From @coke

On Sat Jul 10 23​:14​:57 2010, cognominal wrote​:

$ cat A.pm
role A[​::T] { }
$ perl6 A.pm
$ perl6 --target=parse A.pm
===SORRY!===
Method 'symbol' not found for invocant of class 'Undef'
$

A program with the sole :​:T has no problem

Behavior has changed​:

$ cat A.pm
role A[​::T] { }
$ perl6 A.pm
Could not instantiate role 'A'​:
Not enough positional parameters passed; got 1 but expected 2
current instr.​: 'specialize' pc 21192 (src/gen/perl6-metamodel.pir​:9881)
(src/gen/Metamodel.nqp​:1932)
called from Sub '' pc 26865 (src/gen/perl6-metamodel.pir​:12123)
(src/gen/Metamodel.nqp​:2351)
called from Sub '' pc 26668 (src/gen/perl6-metamodel.pir​:12057)
(src/gen/Metamodel.nqp​:2345)
called from Sub 'compose' pc 26272 (src/gen/perl6-metamodel.pir​:11937)
(src/gen/Metamodel.nqp​:2344)
called from Sub 'make_pun' pc 13972 (src/gen/perl6-metamodel.pir​:6710)
(src/gen/Metamodel.nqp​:1326)
called from Sub 'find_method' pc 14165 (src/gen/perl6-metamodel.pir​:6794)
(src/gen/Metamodel.nqp​:1345)
called from Sub 'MAIN' pc 368 (src/gen/perl6.pir​:143) (src/main.nqp src/gen/main-
version.nqp​:41)
called from Sub '' pc 77 (src/gen/perl6.pir​:56) (src/main.nqp src/gen/main-version.nqp​:1)
called from Sub '' pc 1127 (src/gen/perl6.pir​:404) (src/main.nqp src/gen/main-version.nqp​:52)
$ perl6 --target=parse A.pm
===SORRY!===
Could not locate compile-time value for symbol StaticLexPad

Is the behavior on the direction invocation not right?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

From @FROGGS

Works, test added​: Raku/roast@0cbc65bd19

@p6rt
Copy link
Author

p6rt commented Jul 19, 2014

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

@p6rt p6rt closed this as completed Jul 19, 2014
@p6rt p6rt added the Bug label Jan 5, 2020
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

1 participant