You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below code provides an incorrect error. It is not to claim that the code should or should not be an error.
auto lam = (cx = 3) { cx = 10; };
Error: cx is used as a type
This could create a lambda which takes an int, or it could error out with "cannot deduce type from default arguments"
This is similar to: #10491
The text was updated successfully, but these errors were encountered:
Jesse Phillips reported this on 2014-05-28T02:37:57Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=12814
Description
The below code provides an incorrect error. It is not to claim that the code should or should not be an error. auto lam = (cx = 3) { cx = 10; }; Error: cx is used as a type This could create a lambda which takes an int, or it could error out with "cannot deduce type from default arguments" This is similar to: #10491The text was updated successfully, but these errors were encountered: