comparison test/templ1.d @ 85:f869c636a113 trunk

[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.)
author lindquist
date Fri, 02 Nov 2007 06:32:32 +0100
parents
children
comparison
equal deleted inserted replaced
84:169711a7126e 85:f869c636a113
1 module templ1;
2
3 T func1(T)(T a)
4 {
5 static T b = a;
6 return b;
7 }
8
9 void main()
10 {
11 }