mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Merged DMD commit ac11d09afb39556fd995fba2481c274e40437d39:
merge
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
// Compiler implementation of the D programming language
|
||||
// Copyright (c) 1999-2010 by Digital Mars
|
||||
// Copyright (c) 1999-2011 by Digital Mars
|
||||
// All Rights Reserved
|
||||
// written by Walter Bright
|
||||
// http://www.digitalmars.com
|
||||
@@ -443,6 +443,15 @@ void TemplateDeclaration::semantic(Scope *sc)
|
||||
//sc->module->toModuleAssert();
|
||||
}
|
||||
|
||||
#if DMDV2
|
||||
if (/*global.params.useUnitTests &&*/ sc->module)
|
||||
{
|
||||
// Generate this function as it may be used
|
||||
// when template is instantiated in other modules
|
||||
sc->module->toModuleUnittest();
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Remember Scope for later instantiations, but make
|
||||
* a copy since attributes can change.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user