Skip to content
Browse files

[S32::Exception] X::Parameter::MultipleTypeConstraints now reports pa…

…rameter name
  • Loading branch information...
1 parent 22ec8ab commit 5504a8317e0fb8bbe89395a3fd1fcce4d0de3eeb @moritz moritz committed Aug 17, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 S32-setting-library/Exception.pod
View
5 S32-setting-library/Exception.pod
@@ -18,7 +18,7 @@ Authors of previous versions of this document:
Created: 26 Feb 2009
Last Modified: 17 August 2012
- Version: 18
+ Version: 19
The document is a draft.
@@ -343,8 +343,9 @@ Thrown when an illegal twigil is used in a formal parameter.
Thrown for multiple prefix type constraints like C<Int Str $x>.
my class X::Parameter::MultipleTypeConstraints does X::Comp {
+ has $.parameter;
method message() {
- "A parameter may only have on prefix type constraint";
+ qq[{"Parameter $.parameter" || 'A parameter'} may only have on prefix type constraint];
}
}

0 comments on commit 5504a83

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