Skip to content
This repository
Browse code

make X::Placeholder::Mainline a subclass of X::Placeholder::Block

it really is just a specialization of the general "block" case
  • Loading branch information...
commit 2f1d76ff86793400d1fa9d5b3e7629e1eafe8bb2 1 parent f95bbea
Moritz Lenz authored August 17, 2012

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. 5  S32-setting-library/Exception.pod
5  S32-setting-library/Exception.pod
Source Rendered
@@ -18,7 +18,7 @@ Authors of previous versions of this document:
18 18
     Created: 26 Feb 2009
19 19
 
20 20
     Last Modified: 17 August 2012
21  
-    Version: 14
  21
+    Version: 15
22 22
 
23 23
 The document is a draft.
24 24
 
@@ -243,8 +243,7 @@ signature (for example C<class A { $^foo }>.
243 243
 Thrown when a placeholder variable is used in the mainline, ie outside of any
244 244
 explicit block.
245 245
 
246  
-    my class X::Placeholder::Mainline does X::Comp {
247  
-        has $.placeholder;
  246
+    my class X::Placeholder::Mainline is X::Placeholder::Block {
248 247
         method message() {
249 248
             "Cannot use placeholder parameter $.placeholder in the mainline"
250 249
         }

0 notes on commit 2f1d76f

Please sign in to comment.
Something went wrong with that request. Please try again.