This commit is contained in:
Simon Brand
2018-03-01 15:05:15 +00:00
parent 2ff689cfe4
commit ed0c4eb48a
2 changed files with 20 additions and 4 deletions
+16
View File
@@ -367,3 +367,19 @@ TEST_CASE("And then extensions", "[extensions.and_then]") {
REQUIRE(ret.error() == 21);
}
}
struct S {
int x;
};
struct F {
int x;
};
TEST_CASE("14", "[issue.14]") {
auto res = tl::expected<S,F>{tl::unexpect, F{}};
res.map_error([](F f) {
});
}