Skip to content

Commit 9d9c65b

Browse files
committed
Allow examples to compile
1 parent ac8942e commit 9d9c65b

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

doc/Type/CompUnit/Repository/FileSystem.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
=SUBTITLE CompUnit::Repository::FileSystem
66
7+
=for code :preamble<role CompUnit::Repository::Locally {}; role CompUnit::Repository {};>
78
class CompUnit::Repository::FileSystem
89
does CompUnit::Repository::Locally
910
does CompUnit::Repository

doc/Type/CompUnit/Repository/Installation.pod6

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
=SUBTITLE CompUnit::Repository::Installation
66
7+
=for code :preamble<role CompUnit::Repository::Locally {}; role CompUnit::Repository::Installable {}>
78
class CompUnit::Repository::Installation
89
does CompUnit::Repository::Locally
910
does CompUnit::Repository::Installable
@@ -86,6 +87,7 @@ matching C<$spec>.
8687
8788
=head2 method need
8889
90+
=for code :method :preamble<method !precomp-stores() {}; method precomp-repository() {}>
8991
method need(
9092
CompUnit::DependencySpecification $spec,
9193
CompUnit::PrecompilationRepository $precomp = self.precomp-repository(),

doc/Type/IO/CatHandle.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ usable anywhere a read-only L<IO::Handle> can be used.
2121
2222
Defined as:
2323
24+
=for code :method
2425
method new(*@handles, :&on-switch, :$chomp = True,
2526
:$nl-in = ["\n", "\r\n"], Str :$encoding, Bool :$bin)
2627

doc/Type/Signature.pod6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ Throws C<X::Cannot::Capture>.
10501050
10511051
=head1 Runtime creation of Signature objects (6.d, 2019.01 and later)
10521052
1053+
=for code :preamble<role Type {}>
10531054
Signature.new(params => (...), returns => Type, arity => 1, count => 1)
10541055
10551056
In some situations, specifically when working with the MetaObject Protocol,

0 commit comments

Comments
 (0)