File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ = begin pod
2
+
3
+ = TITLE class X::Syntax::Term::MissingInitializer
4
+
5
+ class X::Syntax::Term::MissingInitializer does X::Syntax { }
6
+
7
+ Syntax error when a term (a backslash variable) is declared without
8
+ initialization assignment.
9
+
10
+ For example
11
+
12
+ my \foo
13
+
14
+ dies with
15
+
16
+ ===SORRY!===
17
+ Term definition requires an initializer
18
+
19
+ Valid code would be
20
+
21
+ my \foo = 42;
22
+
23
+ = end pod
Original file line number Diff line number Diff line change @@ -384,6 +384,7 @@ class X::Syntax::NoSelf does X::Syntax
384
384
class X::Syntax::Number::RadixOutOfRange does X::Syntax
385
385
class X::Syntax::Regex::Adverb does X::Syntax
386
386
class X::Syntax::Signature::InvocantMarker does X::Syntax
387
+ class X::Syntax::Term::MissingInitializer does X::Syntax
387
388
class X::Syntax::Extension::Category does X::Syntax
388
389
class X::Syntax::InfixInTermPosition does X::Syntax
389
390
class X::Syntax::Pod::BeginWithoutIdentifier does X::Syntax does X::Pod
You can’t perform that action at this time.
0 commit comments