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

Post-defined stubbed class not found if its name starts with an existing namespace #4670

Closed
p6rt opened this issue Oct 22, 2015 · 4 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Oct 22, 2015

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

Searchable as RT126426$

@p6rt
Copy link
Author

p6rt commented Oct 22, 2015

From @smls

This compiles and runs fine​:

  class A​::B { ... };
 
  say A​::B.new;
 
  class A​::B {
  has $.a = 42
  };

But this fails to compile​:

  class X​::B { ... };
 
  say X​::B.new;
 
  class X​::B {
  has $.a = 42
  };

The error message is​:

  The following packages were stubbed but not defined​:
  X​::B

Same issue when it's called Grammar​::B, Int​::B, etc. - apparently any
compound class name that starts with an existing namespace, runs into
this problem.


(perl6 version 2015.09-433-g26617f9 built on MoarVM version 2015.09-79-gee9fc2b)

@p6rt
Copy link
Author

p6rt commented Sep 14, 2017

From @skids

On Wed, 21 Oct 2015 22​:08​:47 -0700, smls75@​gmail.com wrote​:

This compiles and runs fine​:

class A​::B { ... };

say A​::B.new;

class A​::B {
has $.a = 42
};

But this fails to compile​:

class X​::B { ... };

say X​::B.new;

class X​::B {
has $.a = 42
};

The error message is​:

The following packages were stubbed but not defined​:
X​::B

Same issue when it's called Grammar​::B, Int​::B, etc. - apparently any
compound class name that starts with an existing namespace, runs into
this problem.

---
(perl6 version 2015.09-433-g26617f9 built on MoarVM version 2015.09-
79-gee9fc2b)

Seems fixed now. Tests added in roast commit 6e5180e96, so resolving.

@p6rt
Copy link
Author

p6rt commented Sep 14, 2017

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

@p6rt
Copy link
Author

p6rt commented Sep 14, 2017

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

@p6rt p6rt closed this as completed Sep 14, 2017
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