Skip to content

Commit

Permalink
ID metamethods on a package are absent by design
Browse files Browse the repository at this point in the history
Per discussion on:
rakudo/rakudo#818 (comment)
  • Loading branch information
zoffixznet committed Jul 8, 2016
1 parent 37f9e40 commit 06b24bb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions S12-introspection/meta-class.t
Expand Up @@ -41,12 +41,11 @@ subtest { plan 3;
}, 'metamethods on a module';

# RT #128579
subtest { plan 3;
subtest { plan 2;
my package P:ver<1.2.3>:auth<me> {};
is P.^name, 'P', '.name is correct';
is P.^ver, '1.2.3', '.ver is correct';
is P.^auth, 'me', '.auth is correct';
}, 'metamethods on a module';
throws-like { P.^ver }, X::Method::NotFound, '.ver is absent';
throws-like { P.^auth }, X::Method::NotFound, '.auth is absent';
}, 'ID metamethods on a package are absent by design';


# RT #115208
Expand Down

0 comments on commit 06b24bb

Please sign in to comment.