From a6ad856d517bb143b408ec82dfa6f207d2639ccd Mon Sep 17 00:00:00 2001 From: Nicholas Wilson Date: Tue, 14 Jan 2025 06:05:25 +0800 Subject: [PATCH] Fix self assignment for https://github.com/dlang/dmd/pull/20696 --- std/typecons.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/std/typecons.d b/std/typecons.d index bd462f53a..a841e4720 100644 --- a/std/typecons.d +++ b/std/typecons.d @@ -3348,7 +3348,7 @@ package(std) Rebindable2!T rebindable2(T)(T value) this(ref inout S rhs) @safe inout { - this.i = i; + this.i = rhs.i; copied = true; } }