Mercurial > projects > ddmd
diff dmd/StructLiteralExp.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | 9e39c7de8438 |
children | 9a2a1ae6c8e5 |
line wrap: on
line diff
--- a/dmd/StructLiteralExp.d Sat Sep 11 13:03:39 2010 +0100 +++ b/dmd/StructLiteralExp.d Mon Sep 13 22:19:42 2010 +0100 @@ -157,8 +157,7 @@ } else { - e = v.type.defaultInit(Loc(0)); - e.loc = loc; + e = v.type.defaultInitLiteral(loc); } offset = v.offset + cast(uint)v.type.size(); } @@ -660,7 +659,7 @@ te = te.mutableOf(); else { - assert(t.mod == MODinvariant); + assert(t.mod == MODimmutable); te = te.invariantOf(); } MATCH m2 = e.implicitConvTo(te);