We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d6295b commit 2c3c887Copy full SHA for 2c3c887
doc/Language/typesystem.pod6
@@ -414,6 +414,22 @@ L<re-dispatching|/language/functions#Re-dispatching>.
414
method m { nextsame }
415
method n { self.A::m }
416
};
417
+
418
+ B.new.m;
419
+ B.new.n;
420
+ # OUTPUT«i iz hidden»
421
422
+The trait <is hidden> allows a class to hide itself from
423
+L<re-dispatching|/language/functions#Re-dispatching>.
424
425
+ class A is hidden {
426
+ method m { say 'i iz hidden' }
427
+ }
428
+ class B is A {
429
+ method m { nextsame }
430
+ method n { self.A::m }
431
432
433
B.new.m;
434
B.new.n;
435
# OUTPUT«i iz hidden»
0 commit comments