Skip to content

Instantly share code, notes, and snippets.

@Scimon
Created November 26, 2018 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Scimon/59e82c9ff1d5287ff59a7fb7f268ce22 to your computer and use it in GitHub Desktop.
Save Scimon/59e82c9ff1d5287ff59a7fb7f268ce22 to your computer and use it in GitHub Desktop.
Error in Test::Env::Attribute
Cannot invoke this object (REPR: Null; VMNull)
in block at /home/sproctor/src/p6-Trait-Env/lib/Trait/Env/Attribute.pm6 (Trait::Env::Attribute) line 87
in block <unit> at t/02-env-only.t line 71
@Scimon
Copy link
Author

Scimon commented Nov 26, 2018

To replicate :
Comment out no precompilation in the https://github.com/Scimon/p6-Trait-Env/blob/master/lib/Trait/Env/Attribute.pm6
Run Test suite.
The specific test that fails has the class declaration in an external file Config and is the last subtest "External class test"

(Note that the pre compiled version runs fine if you define your class and used it all in one script. But fails if it's in an external module.)

I'm at a loss as to why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment