1 // REQUIRED_ARGS: -lib -Icompilable/extra-files
2 // EXTRA_FILES: extra-files/imp12624.d
3 // https://issues.dlang.org/show_bug.cgi?id=12624
4 
5 struct SysTime
6 {
7     import imp12624;
8 
9     Rebindable!(immutable TimeZone) _timezone = UTC();
10 }
11 
12 
13 class TimeZone
14 {
this(string,string,string)15     this(string , string , string ) immutable {}
16 }
17 
18 
19 class UTC : TimeZone
20 {
opCall()21     static immutable(UTC) opCall()
22     {
23         return _utc;
24     }
25 
this()26     this() immutable {
27         super("UTC", "UTC", "UTC");
28     }
29 
30     static _utc = new immutable(UTC);
31 }
32