Files
ldc/test/templ1.d
Tomas Lindquist Olsen 1b867a0588 [svn r89] Fixed a bunch of problems with template instance across multiple modules.
Fixed initialization of function local static variables, with a non const initializer (now happens on first call using a global to make sure it only happens once.)
2007-11-02 06:32:32 +01:00

12 lines
87 B
D

module templ1;
T func1(T)(T a)
{
static T b = a;
return b;
}
void main()
{
}