Skip to content

Commit 88bad9d

Browse files
committed
Add exception X::Syntax::Term::MissingInitializer
1 parent 12d18c1 commit 88bad9d

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

type-graph.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ class X::Syntax::NoSelf does X::Syntax
384384
class X::Syntax::Number::RadixOutOfRange does X::Syntax
385385
class X::Syntax::Regex::Adverb does X::Syntax
386386
class X::Syntax::Signature::InvocantMarker does X::Syntax
387+
class X::Syntax::Term::MissingInitializer does X::Syntax
387388
class X::Syntax::Extension::Category does X::Syntax
388389
class X::Syntax::InfixInTermPosition does X::Syntax
389390
class X::Syntax::Pod::BeginWithoutIdentifier does X::Syntax does X::Pod

0 commit comments

Comments
 (0)