Changeset 215
- Timestamp:
- 10/14/09 23:22:34 (2 years ago)
- Files:
-
- branches/dmd-1.x/src/declaration.c (modified) (1 diff)
- trunk/src/declaration.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/dmd-1.x/src/declaration.c
r202 r215 1035 1035 { 1036 1036 ei->exp = ei->exp->semantic(sc); 1037 ei->exp = resolveProperties(sc, ei->exp); 1037 1038 StructDeclaration *sd = ((TypeStruct *)t)->sym; 1038 1039 #if DMDV2 trunk/src/declaration.c
r202 r215 1045 1045 { 1046 1046 ei->exp = ei->exp->semantic(sc); 1047 ei->exp = resolveProperties(sc, ei->exp); 1048 StructDeclaration *sd = ((TypeStruct *)t)->sym; 1047 1049 #if DMDV2 1048 1050 /* Look to see if initializer is a call to the constructor 1049 1051 */ 1050 StructDeclaration *sd = ((TypeStruct *)t)->sym;1051 1052 if (sd->ctor && // there are constructors 1052 1053 ei->exp->type->ty == Tstruct && // rvalue is the same struct
