comparison dmd/UnitTestDeclaration.d @ 179:cd48cb899aee

Updated to dmd2.040
author korDen
date Sun, 17 Oct 2010 20:56:07 +0400
parents e3afd1303184
children b0d41ff5e0df
comparison
equal deleted inserted replaced
178:e3afd1303184 179:cd48cb899aee
46 46
47 override void semantic(Scope sc) 47 override void semantic(Scope sc)
48 { 48 {
49 if (global.params.useUnitTests) 49 if (global.params.useUnitTests)
50 { 50 {
51 type = new TypeFunction(null, Type.tvoid, false, LINKd); 51 if (!type)
52 type = new TypeFunction(null, Type.tvoid, false, LINKd);
52 Scope sc2 = sc.push(); 53 Scope sc2 = sc.push();
53 sc2.linkage = LINK.LINKd; 54 sc2.linkage = LINK.LINKd;
54 FuncDeclaration.semantic(sc2); 55 FuncDeclaration.semantic(sc2);
55 sc2.pop(); 56 sc2.pop();
56 } 57 }