Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix Date.clone. We now pass S32-temporal/Date.t

  • Loading branch information...
commit 048cfd5415b1a1e3d29934ab55c0aa2f57cc717a 1 parent eb855f3
@tadzik tadzik authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  src/core/Temporal.pm
  2. +1 −1  t/spectest.data
View
3  src/core/Temporal.pm
@@ -444,7 +444,8 @@ my class Date does Dateish {
}
method clone(*%_) {
- self.new(:$!year, :$!month, :$!day, |%_)
+ my %args = { :$!year, :$!month, :$!day, %_ };
+ self.new(|%args);
}
method succ() {
View
2  t/spectest.data
@@ -566,7 +566,7 @@ S32-str/ucfirst.t # icu
# S32-str/unpack.t # err: Default constructor only takes named arguments
S32-str/words.t # icu
# S32-temporal/calendar.t # err: Method 'truncated-to' not found for invocant of class 'Date'
-# S32-temporal/Date.t # err: Default constructor only takes named arguments
+S32-temporal/Date.t
# S32-temporal/DateTime.t # err: Default constructor only takes named arguments
# S32-temporal/DateTime-Instant-Duration.t # err: Method 'Instant' not found for invocant of class 'DateTime'
# S32-temporal/local.t # err: Method 'now' not found for invocant of class 'DateTime'
Please sign in to comment.
Something went wrong with that request. Please try again.