Skip to content

Commit 6bb1640

Browse files
committed
Add case that make use of mutable lambdas
1 parent 21500b9 commit 6bb1640

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

regression-tests/mixed-overview-of-as-casts.cpp2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ main: () = {
8989
myvariant: type == std::variant<ThrowingConstruction, std::monostate, int>;
9090

9191
v : myvariant = ();
92+
expect_throws(:() = v$.emplace<0>(42););
9293
expect_throws(:() = v&$*.emplace<0>(42););
9394
// expect_throws(:() = std::ref(v&$*).emplace<0>(42);); // TODO: check why it is not working?
9495

0 commit comments

Comments
 (0)