http://d.puremagic.com/issues/show_bug.cgi?id=8400


bearophile_h...@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_h...@eml.cc


--- Comment #3 from bearophile_h...@eml.cc 2012-07-23 08:47:04 PDT ---
> void main(){
>     immutable a = [1,2];
>     int[a.length+0] b; // ok
>     int[a.length  ] c; // error
> }
> 
> The code should compile.

That code should not compile, in my opinion.

Nor this one:

immutable a = [1, 2];
void main() {
    int[a.length] b;
}

See some discussion:
http://forum.dlang.org/thread/xjxkyokzwggfnrvmg...@forum.dlang.org

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to