Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
.eager shouldn't flatten
This fixes an issue with ((1, (2, 3)) »+« (4, (5, 6)))
  • Loading branch information
Mouq committed Mar 11, 2015
1 parent c2a1ddf commit 1d05014
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Any.pm
Expand Up @@ -57,10 +57,10 @@ my class Any { # declared in BOOTSTRAP

proto method eager(|) { * }
multi method eager(Any:U:) {
nqp::p6list(nqp::list(), List, Bool::True).eager;
nqp::p6list(nqp::list(), List, Mu).eager;
}
multi method eager(Any:D:) {
nqp::p6list(nqp::list(self), List, Bool::True).eager;
nqp::p6list(nqp::list(self), List, Mu).eager;
}

proto method hash(|) { * }
Expand Down
1 change: 1 addition & 0 deletions src/core/Parcel.pm
Expand Up @@ -74,6 +74,7 @@ my class Parcel does Positional { # declared in BOOTSTRAP
method flat() { nqp::p6list(nqp::clone($!storage), List, Bool::True) }
method list() { nqp::p6list(nqp::clone($!storage), List, Mu) }
method lol() { nqp::p6list(nqp::clone($!storage), LoL, Mu) }
method eager() { nqp::p6list(nqp::clone($!storage), List, Mu) }

method reverse() {
my Mu $reverse := nqp::list();
Expand Down

0 comments on commit 1d05014

Please sign in to comment.