{"body":" Cool.pm\n-    proto method index(|) {*}\n-    multi method index(Cool:D: Str(Cool) $needle) {\n-        self.Str.index($needle)\n-    }\n-    multi method index(Cool:D: Str(Cool) $needle, Int(Cool) $pos) {\n-        self.Str.index($needle,$pos)\n+    method index(Cool:D: |c) {\n+        self.Str.index(|c)\n\nStr.pm\n\n-    multi method index(Str:D: Str:D $needle) {\n+    proto method index(|) {*}\n+    multi method index(Str:D: Str(Cool:D) $needle) {\n         nqp::if(\n           nqp::islt_i((my int $i =\n             nqp::index($!value,nqp::getattr($needle,Str,'$!value'))),\n@@ -229,7 +235,7 @@ my class Str does Stringy { # declared in BOOTSTRAP\n           nqp::p6box_i($i)\n         )\n     }\n-    multi method index(Str:D: Str:D $needle, Int:D $pos) {\n+    multi method index(Str:D: Str(Cool:D) $needle, Int:D $pos) {\n         nqp::if(\n           nqp::isbig_I(nqp::decont($pos)),\n           Failure.new(X::OutOfRange.new(\n@@ -255,6 +261,7 @@ my class Str does Stringy { # declared in BOOTSTRAP\n         )\n     }\n","name":"","extension":"diff","url":"https://www.irccloud.com/pastebin/J2IFVG2m","modified":1489781693,"id":"J2IFVG2m","size":1005,"lines":30,"own_paste":false,"theme":"","date":1489781693}