Mercurial > projects > dang
comparison sema/ImplicitCast.d @ 87:9a35a973175a new_gen
Some improvements to the compiler program
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 04 May 2008 12:58:02 +0200 |
parents | 682e20aa224f |
children | eb5b2c719a39 |
comparison
equal
deleted
inserted
replaced
86:29f486ccc203 | 87:9a35a973175a |
---|---|
79 auto identifierType = exp.identifier.type; | 79 auto identifierType = exp.identifier.type; |
80 auto expType = exp.exp.type; | 80 auto expType = exp.exp.type; |
81 | 81 |
82 if(identifierType != expType) | 82 if(identifierType != expType) |
83 { | 83 { |
84 Stdout(&identifierType)(identifierType).newline; | |
85 Stdout(&expType)(expType).newline; | |
86 if(!expType.hasImplicitConversionTo(identifierType)) | 84 if(!expType.hasImplicitConversionTo(identifierType)) |
87 throw error(__LINE__, "Cannot make implicit cast between"); | 85 throw error(__LINE__, "Cannot make implicit cast between"); |
88 | 86 |
89 auto castExp = new CastExp( | 87 auto castExp = new CastExp( |
90 new Identifier(expType.name), | 88 new Identifier(expType.name), |