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

use instead of sub give an error with no line number #6148

Closed
p6rt opened this issue Mar 11, 2017 · 6 comments
Closed

use instead of sub give an error with no line number #6148

p6rt opened this issue Mar 11, 2017 · 6 comments
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded

Comments

@p6rt
Copy link

p6rt commented Mar 11, 2017

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

Searchable as RT130979$

@p6rt
Copy link
Author

p6rt commented Mar 11, 2017

From @MasterDuke17

[21​:51] <timotimo> m​: use CheckSystemDependency ( $name ) { say "lol" }
[21​:51] <+camelia> rakudo-moar f190f2​: OUTPUT​: «===SORRY!===␤Cannot call
method 'List' on a null object␤»
[21​:51] <timotimo> that's meant to be "sub" instead of use

@p6rt
Copy link
Author

p6rt commented Mar 11, 2017

From @zoffixznet

On Fri, 10 Mar 2017 19​:11​:53 -0800, ddgreen@​gmail.com wrote​:

[21​:51] <timotimo> m​: use CheckSystemDependency ( $name ) { say "lol" }
[21​:51] <+camelia> rakudo-moar f190f2​: OUTPUT​: «===SORRY!===␤Cannot call
method 'List' on a null object␤»
[21​:51] <timotimo> that's meant to be "sub" instead of use

Golfed a bit​:

<Zoffix> m​: use x $;
<camelia> rakudo-moar f190f2​: OUTPUT​: «===SORRY!===␤Cannot call method 'List' on a null object␤»

@p6rt
Copy link
Author

p6rt commented Mar 11, 2017

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

@p6rt
Copy link
Author

p6rt commented Mar 11, 2017

From @lizmat

Fixed with rakudo/rakudo@27dc7b155b , even better fixed with rakudo/rakudo@1e246665cd . Tests needed.

On 11 Mar 2017, at 04​:11, Daniel Green (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Daniel Green
# Please include the string​: [perl #​130979]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=130979 >

[21​:51] <timotimo> m​: use CheckSystemDependency ( $name ) { say "lol" }
[21​:51] <+camelia> rakudo-moar f190f2​: OUTPUT​: «===SORRY!===␤Cannot call
method 'List' on a null object␤»
[21​:51] <timotimo> that's meant to be "sub" instead of use

@p6rt
Copy link
Author

p6rt commented Apr 26, 2017

From @zoffixznet

Tests added Raku/roast@4e73bea9e8

@p6rt
Copy link
Author

p6rt commented Apr 26, 2017

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

@p6rt p6rt closed this as completed Apr 26, 2017
@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded
Projects
None yet
Development

No branches or pull requests

1 participant