[Issue 14962] [REG2.068] compiler inference of attributes for nested map seems broken

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Aug 27 20:42:48 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14962

--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
(In reply to Steven Schveighoffer from comment #0)
> Another case:
> 
> import std.range;
> import std.algorithm;
> 
> class Foo {
>     int baz() {    return 1;}
>     void bar() {
>         auto s = [1].map!(i => baz()); // compiles
>         auto r = [1].map!(i => [1].map!(j => baz())); // error
>     }
> }
[snip]

I separated the second case into issue 14973.

--


More information about the Digitalmars-d-bugs mailing list