@tg I am just referencing the DIP idea post:
Types can be declared explicitly, or inferred, independently for each variable:
(int a, (string b, auto c)) = t(1, t("2", 3.0f));
but in my tests:
auto foo() => t(1, 2);
(int a, int b) = foo();
test_01.d(21): Error: unpacked variables need at least one storage class, did you mean `auto a`?
test_01.d(21): Error: unpacked variables need at least one storage class, did you mean `auto b`?
This works:
( auto a, auto b) = foo;
As mojo pointed out in discord:
This fixes that issue.