Created
January 16, 2017 10:33
-
-
Save lizmat/b9da3fbcf0cb0ab41e10c99f4b554bed to your computer and use it in GitHub Desktop.
Why does this break nodality tests 134-135 in t/spec/S03-metaops/hyper.t ??
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/Any-iterable-methods.pm b/src/core/Any-iterable-methods.pm | |
index a25c022..7b49351 100644 | |
--- a/src/core/Any-iterable-methods.pm | |
+++ b/src/core/Any-iterable-methods.pm | |
@@ -1477,16 +1477,16 @@ Did you mean to add a stub (\{...\}) or did you mean to .classify?" | |
) | |
} | |
- proto method reduce(|) { * } | |
- multi method reduce(&with) is nodal { | |
- return unless self.DEFINITE; | |
+ proto method reduce(|) is nodal { * } | |
+ multi method reduce(Any:U: &with) { Nil } | |
+ multi method reduce(Any:D: &with) { | |
my $reducer := find-reducer-for-op(&with); | |
$reducer(&with)(self) if $reducer; | |
} | |
- proto method produce(|) { * } | |
- multi method produce(&with) is nodal { | |
- return unless self.DEFINITE; | |
+ proto method produce(|) is nodal { * } | |
+ multi method produce(Any:U: &with) { Nil } | |
+ multi method produce(Any:D: &with) { | |
my $reducer := find-reducer-for-op(&with); | |
$reducer(&with,1)(self) if $reducer; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment