projects
/
p5sagit/Function-Parameters.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
first cut at named parameters
[p5sagit/Function-Parameters.git]
/
t
/
name_2.fail
diff --git a/t/name_2.fail
b/t/name_2.fail
new file mode 100644
(file)
index 0000000..
2ddbf0a
--- /dev/null
+++ b/
t/name_2.fail
@@ -0,0
+1,21
@@
+#!perl
+use warnings;
+use strict;
+
+use Function::Parameters {
+ func => {
+ name => 'required',
+ },
+
+ f => {
+ name => 'prohibited',
+ },
+
+ method => {
+ name => 'required',
+ shift => '$this',
+ },
+};
+
+f bad() {
+}