Skip to content

Commit

Permalink
Change a unittest in std.traits for upcoming deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Feb 28, 2023
1 parent 2e8f217 commit 54b0255
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion std/traits.d
Original file line number Diff line number Diff line change
Expand Up @@ -5301,7 +5301,8 @@ enum isLvalueAssignable(Lhs, Rhs = Lhs) = __traits(compiles, { lvalueOf!Lhs = lv
static assert(!isAssignable!S5);

// `-preview=in` is enabled
static if (!is(typeof(mixin(q{(in ref int a) => a}))))
alias DScannerBug895 = int[256];
static if (((in DScannerBug895 a) { return __traits(isRef, a); })(DScannerBug895.init))
{
struct S6 { void opAssign(in S5); }

Expand Down

0 comments on commit 54b0255

Please sign in to comment.