Skip to content

Commit 62c85a9

Browse files
authored
Recover optexpr.cpp. (#99)
Co-authored-by: Bowen Fu <missing>
1 parent 87c6cba commit 62c85a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/matchit/optexpr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ constexpr auto eval2(std::tuple<char, T1, T2> const& exp)
2929
return match(exp) // unnecessary expr()
3030
(
3131
pattern | ds('+', i, j) | when((i + j) > 0) = i + j,
32-
pattern | ds('-', i, j) | when(true) = i - j,
33-
pattern | ds('*', i, j) | when(i) = i,
34-
pattern | ds('/', i, j) = 12345,
32+
pattern | ds('-', i, j) | when(expr(true)) = i - j,
33+
pattern | ds('*', i, j) | when(expr(i)) = expr(i),
34+
pattern | ds('/', i, j) = expr(12345),
3535
pattern | _ = [] { return -1; }
3636
);
3737
}

0 commit comments

Comments
 (0)