From 380f9d83ae0e2913f9424c2d4725c5984561ab3d Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 17 Feb 2022 13:07:33 +0000 Subject: [PATCH] [changelog] Fix using sequence, not tuple (#13670) --- .../allow_casting_from_typetuple_to_typetuple.dd | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/changelog/allow_casting_from_typetuple_to_typetuple.dd b/changelog/allow_casting_from_typetuple_to_typetuple.dd index 56b60ba4bc..87d6944a64 100644 --- a/changelog/allow_casting_from_typetuple_to_typetuple.dd +++ b/changelog/allow_casting_from_typetuple_to_typetuple.dd @@ -1,20 +1,20 @@ -Casting between compatible tuples +Casting between compatible sequences -Prior to this release, casting between built-in tuples of the same type was not allowed. +Prior to this release, casting between built-in sequences of the same type was not allowed. -Starting with this release, casting between tuples of the same length is accepted provided that the underlying types of the casted tuple are implicitly convertible to the target tuple types. +Starting with this release, casting between sequences of the same length is accepted provided that the underlying types of the casted sequence are implicitly convertible to the target sequence types. --- -alias Tuple(T...) = T; +alias Seq(T...) = T; void foo() { - Tuple!(int, int) tup; + Seq!(int, int) seq; - auto foo = cast(long) tup; + auto foo = cast(long) seq; pragma(msg, typeof(foo)); // (int, int) - auto bar = cast(Tuple!(long, int)) tup; // allowed + auto bar = cast(Seq!(long, int)) seq; // allowed pragma(msg, typeof(bar)); // (long, int) } ---