Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Give Positional/Associative/Callable type parameters.

  • Loading branch information...
commit b238ce455807e513687c3cf5f5cb8bdf7bec20a1 1 parent 676b356
@jnthn jnthn authored
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 }
}
Please sign in to comment.
Something went wrong with that request. Please try again.