Skip to content

Commit a6ad856

Browse files
Fix self assignment for dlang/dmd#20696
1 parent f95cd32 commit a6ad856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/typecons.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3348,7 +3348,7 @@ package(std) Rebindable2!T rebindable2(T)(T value)
33483348

33493349
this(ref inout S rhs) @safe inout
33503350
{
3351-
this.i = i;
3351+
this.i = rhs.i;
33523352
copied = true;
33533353
}
33543354
}

0 commit comments

Comments
 (0)