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

framefail in EXPORT and an anonymous class #5035

Open
p6rt opened this issue Jan 13, 2016 · 1 comment
Open

framefail in EXPORT and an anonymous class #5035

p6rt opened this issue Jan 13, 2016 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Jan 13, 2016

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

Searchable as RT127255$

@p6rt
Copy link
Author

p6rt commented Jan 13, 2016

From @gfldex

# https://gist.github.com/gfldex/87e6af28194e5389a8f2

# the-lib.pm6
sub EXPORT() {
  { 'Anon' => class {} }
}

# lib-loader.p6
use v6;
use lib '.';
use the-lib;

# OUTPUT
# ===SORRY!===
# When invoking cuid_1_1452682916.69 '', provided outer frame 0x44f5f80
# (cuid_3_1452682916.69 'EXPORT') does not match expected static frame
# 0x44b20f0 (cuid_2_1452682916.69 '')

# Expected
# either having an empty class called Anon in the scope of lib-loader.p6
# or a proper error message

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