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

REPL doesn't consider use'd file contents for evaluation #2842

Closed
p6rt opened this issue Jul 29, 2012 · 5 comments
Closed

REPL doesn't consider use'd file contents for evaluation #2842

p6rt opened this issue Jul 29, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jul 29, 2012

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

Searchable as RT114308$

@p6rt
Copy link
Author

p6rt commented Jul 29, 2012

From rob.hoelz@booking.com

Example​:

  # Animal.pm6
  role Animal {}

  # REPL
  > use Animal;
  > my $dog = Any.new;
  > $dog does Animal; # this line fails

I would normally expect this to work.

@p6rt
Copy link
Author

p6rt commented Aug 5, 2012

From @jnthn

On Sun Jul 29 11​:05​:13 2012, rob.hoelz@​booking.com wrote​:

Example​:

# Animal.pm6
role Animal {}

# REPL

use Animal;
my $dog = Any.new;
$dog does Animal; # this line fails

I would normally expect this to work.

I didn't manage to figure it out yet, but curiously​:

perl6 -Ilib

use Test;
Nil
say Test
CHECK FAILED​:
Undefined routine '&Test' called (line 1)
plan 1;
1..1

That is, routines are fine, it's types that get lost. Couldn't spot
anywhere that may be happening, though...

/jnthn

@p6rt
Copy link
Author

p6rt commented Aug 5, 2012

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

@p6rt
Copy link
Author

p6rt commented Mar 9, 2013

From @jnthn

On Sun Jul 29 11​:05​:13 2012, rob.hoelz@​booking.com wrote​:

Example​:

# Animal.pm6
role Animal {}

# REPL

use Animal;
my $dog = Any.new;
$dog does Animal; # this line fails

I would normally expect this to work.

This was fixed a while back. Just confirmed it works with your example​:

use Animal;
Nil
my $dog = Any.new;
Any.new()
$dog does Animal;
Any+{Animal}.new()

Thanks,

/jnthn

@p6rt
Copy link
Author

p6rt commented Mar 9, 2013

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

@p6rt p6rt closed this as completed Mar 9, 2013
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