comparison dmd/TypeTypedef.d @ 53:a8b50ff7f201

ForeachStatement.syntaxCopy SliceExp.syntaxCopy AnonDeclaration.syntaxCopy SwitchStatement.syntaxCopy CaseStatement.syntaxCopy BreakStatement.syntaxCopy ThrowStatement.syntaxCopy NewExp.syntaxCopy DefaultStatement.syntaxCopy AssertExp.syntaxCopy ClassDeclaration.syntaxCopy TypeTypedef.constConv eval_builtin ComplexExp.isConst DVCondition.syntaxCopy OrExp.getIntRange AndExp.getIntRange getMask IntegerExp.getIntRange Type.sizemask CastExp.getIntRange Expression.getIntRange
author korDen
date Sat, 21 Aug 2010 12:15:47 +0400
parents 10317f0c89a5
children cab4c37afb89
comparison
equal deleted inserted replaced
52:69d078c417c6 53:a8b50ff7f201
187 return m; 187 return m;
188 } 188 }
189 189
190 MATCH constConv(Type to) 190 MATCH constConv(Type to)
191 { 191 {
192 assert(false); 192 if (equals(to))
193 return MATCHexact;
194 if (ty == to.ty && sym == (cast(TypeTypedef)to).sym)
195 return sym.basetype.implicitConvTo((cast(TypeTypedef)to).sym.basetype);
196 return MATCHnomatch;
193 } 197 }
194 198
195 Expression defaultInit(Loc loc) 199 Expression defaultInit(Loc loc)
196 { 200 {
197 Expression e; 201 Expression e;