Permalink
Browse files

Give Positional/Associative/Callable type parameters.

  • Loading branch information...
1 parent 676b356 commit b238ce455807e513687c3cf5f5cb8bdf7bec20a1 @jnthn jnthn committed Dec 3, 2011
Showing with 7 additions and 3 deletions.
  1. +2 −1 src/core/Associative.pm
  2. +3 −1 src/core/Callable.pm
  3. +2 −1 src/core/Positional.pm
View
3 src/core/Associative.pm
@@ -1,2 +1,3 @@
-my role Associative {
+my role Associative[::T = Mu] {
+ method of() { T }
}
View
4 src/core/Callable.pm
@@ -1,2 +1,4 @@
-my role Callable {
+my role Callable[::T = Mu] {
+ method of() { T }
+ method returns() { T }
}
View
3 src/core/Positional.pm
@@ -1,2 +1,3 @@
-my role Positional {
+my role Positional[::T = Mu] {
+ method of() { T }
}

0 comments on commit b238ce4

Please sign in to comment.