Mercurial > projects > dang
comparison sema/TypeCheck.d @ 107:189c049cbfcc new_gen
Cleanup of codegen, better support for operators a few bugfixes
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 25 May 2008 14:40:14 +0200 |
parents | 771ac63898e2 |
children | 3a0cd42de9cc |
comparison
equal
deleted
inserted
replaced
103:09b4d74cb3f5 | 107:189c049cbfcc |
---|---|
88 if(!expType.hasImplicitConversionTo(identifierType)) | 88 if(!expType.hasImplicitConversionTo(identifierType)) |
89 throw error(__LINE__, "Cannot make implicit cast between"); | 89 throw error(__LINE__, "Cannot make implicit cast between"); |
90 | 90 |
91 auto castExp = new CastExp( | 91 auto castExp = new CastExp( |
92 SLoc.Invalid, | 92 SLoc.Invalid, |
93 new Identifier(expType.name), | 93 new Identifier(identifierType.name), |
94 exp.exp); | 94 exp.exp); |
95 castExp.env = exp.exp.env; | 95 castExp.env = exp.exp.env; |
96 exp.exp = castExp; | 96 exp.exp = castExp; |
97 } | 97 } |
98 } | 98 } |