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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18833 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB