Mercurial > projects > ddmd
comparison dmd/Cast.d @ 135:af1bebfd96a4 dmd2037
dmd 2.038
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Mon, 13 Sep 2010 22:19:42 +0100 |
parents | e28b18c23469 |
children | 52188e7e3fb5 |
comparison
equal
deleted
inserted
replaced
134:4251f96733f4 | 135:af1bebfd96a4 |
---|---|
58 tb.nextOf().size() == typeb.nextOf().size()) | 58 tb.nextOf().size() == typeb.nextOf().size()) |
59 { | 59 { |
60 return expType(to, e1); | 60 return expType(to, e1); |
61 } | 61 } |
62 } | 62 } |
63 | |
64 if (e1.op == TOK.TOKarrayliteral && typeb == tb) | |
65 return e1; | |
63 | 66 |
64 if (e1.isConst() != 1) | 67 if (e1.isConst() != 1) |
65 return EXP_CANT_INTERPRET; | 68 return EXP_CANT_INTERPRET; |
66 | 69 |
67 if (tb.ty == TY.Tbool) | 70 if (tb.ty == TY.Tbool) |