Mercurial > projects > ddmd
comparison dmd/TemplateInstance.d @ 131:206db751bd4c
dmdfe 2.037 compiles now
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Fri, 10 Sep 2010 00:27:37 +0100 |
parents | 60bb0fe4563e |
children | af1bebfd96a4 |
comparison
equal
deleted
inserted
replaced
130:60bb0fe4563e | 131:206db751bd4c |
---|---|
35 import dmd.VarDeclaration; | 35 import dmd.VarDeclaration; |
36 import dmd.VarExp; | 36 import dmd.VarExp; |
37 import dmd.FuncExp; | 37 import dmd.FuncExp; |
38 import dmd.Declaration; | 38 import dmd.Declaration; |
39 import dmd.MATCH; | 39 import dmd.MATCH; |
40 import dmd.TypeFunction; | |
41 import dmd.TemplateTupleParameter; | |
42 import dmd.FuncDeclaration; | |
40 import dmd.templates.Util; | 43 import dmd.templates.Util; |
41 | 44 |
42 import dmd.backend.glue; | 45 import dmd.backend.glue; |
43 | 46 |
44 Tuple isTuple(Object o) | 47 Tuple isTuple(Object o) |
767 /* If any of the overloaded template declarations need inference, | 770 /* If any of the overloaded template declarations need inference, |
768 * then return TRUE | 771 * then return TRUE |
769 */ | 772 */ |
770 FuncDeclaration fd; | 773 FuncDeclaration fd; |
771 if (!td.onemember || | 774 if (!td.onemember || |
772 (fd = td.onemember.toAlias().isFuncDeclaration()) == null || | 775 (fd = td.onemember.toAlias().isFuncDeclaration()) is null || |
773 fd.type.ty != TY.Tfunction) | 776 fd.type.ty != TY.Tfunction) |
774 { | 777 { |
775 /* Not a template function, therefore type inference is not possible. | 778 /* Not a template function, therefore type inference is not possible. |
776 */ | 779 */ |
777 //printf("false\n"); | 780 //printf("false\n"); |