Skip to content

Commit 06b24bb

Browse files
committed
ID metamethods on a package are absent by design
Per discussion on: rakudo/rakudo#818 (comment)
1 parent 37f9e40 commit 06b24bb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

S12-introspection/meta-class.t

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,11 @@ subtest { plan 3;
4141
}, 'metamethods on a module';
4242

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

5150

5251
# RT #115208

0 commit comments

Comments
 (0)