Mercurial > projects > ddmd
comparison dmd/DelegateExp.d @ 175:94b6033c07f3
get rid of globals
malloc -> GC.malloc
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:48:06 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
174:af724d3510d7 | 175:94b6033c07f3 |
---|---|
85 { | 85 { |
86 static if (false) { | 86 static if (false) { |
87 printf("DelegateExp.castTo(this=%s, type=%s, t=%s)\n", | 87 printf("DelegateExp.castTo(this=%s, type=%s, t=%s)\n", |
88 toChars(), type.toChars(), t.toChars()); | 88 toChars(), type.toChars(), t.toChars()); |
89 } | 89 } |
90 static string msg = "cannot form delegate due to covariant return type"; | 90 enum string msg = "cannot form delegate due to covariant return type"; |
91 | 91 |
92 Expression e = this; | 92 Expression e = this; |
93 Type tb = t.toBasetype(); | 93 Type tb = t.toBasetype(); |
94 Type typeb = type.toBasetype(); | 94 Type typeb = type.toBasetype(); |
95 if (tb != typeb) | 95 if (tb != typeb) |