File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ point: @value type = {
77 }
88}
99
10- check: (p: point) p;
10+ check: (copy p: point) -> point = p;
1111
1212main: () = {
1313 assert(check((17, 29)).x == 17);
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public: explicit point();
3030#line 8 "pure2-bugfix-for-nested-lists.cpp2"
3131};
3232
33- [[nodiscard]] auto check (cpp2::impl::in< point> p) -> auto ;
33+ [[nodiscard]] auto check (point p) -> point ;
3434
3535auto main () -> int;
3636
@@ -67,7 +67,7 @@ auto point::operator=(point&& that) noexcept -> point& {
6767 return *this ;}
6868point::point (){}
6969#line 10 "pure2-bugfix-for-nested-lists.cpp2"
70- [[nodiscard]] auto check (cpp2::impl::in< point> p) -> auto { return p ; }
70+ [[nodiscard]] auto check (point p) -> point { return cpp2::move (p) ; }
7171
7272#line 12 "pure2-bugfix-for-nested-lists.cpp2"
7373auto main () -> int{
@@ -90,6 +90,6 @@ auto main() -> int{
9090#line 29 "pure2-bugfix-for-nested-lists.cpp2"
9191auto issue_1283 () -> void{
9292 auto f {[]() -> void {}};
93- static_cast <void >([_0 = (&f)]() mutable -> void { (*cpp2::impl::assert_not_null (_0))(); });
93+ static_cast <void >([_0 = (&f)]() mutable -> decltype ( auto ) { return (*cpp2::impl::assert_not_null (_0))(); });
9494}
9595
You can’t perform that action at this time.
0 commit comments