Beta 2.079.0
Seb
seb at wilzba.ch
Fri Feb 23 17:58:14 UTC 2018
On Friday, 23 February 2018 at 17:47:08 UTC, Kagamin wrote:
>> auto result = foo(), bar();
> Doesn't look like it works.
>
> ---
> int f(int a){ return a; }
> int main()
> {
> int a=f(0),f(1); //doesn't compile
> return 0;
> }
> ---
> int f(int a){ return a; }
> int main()
> {
> int a;
> a=f(0),f(1);
> assert(a==1); //fails
> return 0;
> }
> ---
> https://run.dlang.io/is/IgArs0
Yeah that should result in an error:
https://issues.dlang.org/show_bug.cgi?id=18508
More information about the Digitalmars-d-announce
mailing list