File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
= TITLE class X::Syntax::Augment::WithoutMonkeyTyping
4
4
5
- = SUBTITLE Compilation error due to augmenting a type without ` MONKEY-TYPING`
5
+ = SUBTITLE Compilation error due to augmenting a type without the C < MONKEY-TYPING > pragma
6
6
7
7
class X::Syntax::Augment::WithoutMonkeyTyping does X::Syntax { }
8
8
@@ -11,7 +11,7 @@ Compile time error thrown when C<augment> is used without C<use MONKEY-TYPING>.
11
11
Since C < augment > is considered a rather unsafe and impolite action, you have
12
12
to pre-declare your intent with the C < use MONKEY-TYPING; > pragma.
13
13
14
- If you don't do that, for example
14
+ If you don't do that, like here
15
15
16
16
= for code :skip-test
17
17
augment class Int { };
Original file line number Diff line number Diff line change 2
2
3
3
= TITLE class X::Syntax::NoSelf
4
4
5
- = SUBTITLE Compilation error due to implicitly using a ` self` that is not there
5
+ = SUBTITLE Compilation error due to implicitly using a C < self > that is not there
6
6
7
7
class X::Syntax::NoSelf does X::Syntax { }
8
8
@@ -14,7 +14,7 @@ For example the code
14
14
= for code :skip-test<compile time error>
15
15
$.meth;
16
16
17
- in the mainline throws the error
17
+ in the program body throws the error
18
18
19
19
= for code :lang<text>
20
20
===SORRY!===
Original file line number Diff line number Diff line change 2
2
3
3
= TITLE class X::Syntax::Self::WithoutObject
4
4
5
- = SUBTITLE Compilation error due to invoking ` self` in an ineligible scope
5
+ = SUBTITLE Compilation error due to invoking C < self > in an ineligible scope
6
6
7
7
class X::Syntax::Self::WithoutObject does X::Syntax { }
8
8
@@ -14,7 +14,7 @@ For example
14
14
= for code :skip-test
15
15
self;
16
16
17
- in the mainline dies with
17
+ outside a class or role declaration dies with
18
18
19
19
= for code :skip-test
20
20
===SORRY!===
Original file line number Diff line number Diff line change 2
2
3
3
= TITLE class X::Syntax::UnlessElse
4
4
5
- = SUBTITLE Compilation error due to an ` unless` clause followed by ` else`
5
+ = SUBTITLE Compilation error due to an C < unless > clause followed by C < else >
6
6
7
7
class X::Syntax::UnlessElse does X::Syntax { }
8
8
Original file line number Diff line number Diff line change 2
2
3
3
= TITLE class X::TypeCheck::Return
4
4
5
- = SUBTITLE Error due to a failed typecheck during ` return`
5
+ = SUBTITLE Error due to a failed typecheck during C < return >
6
6
7
7
class X::TypeCheck::Return is X::TypeCheck { }
8
8
You can’t perform that action at this time.
0 commit comments