mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
31 lines
504 B
D
31 lines
504 B
D
// REQUIRED_ARGS: -lib -Icompilable/extra-files
|
|
// EXTRA_FILES: extra-files/imp12624.d
|
|
// https://issues.dlang.org/show_bug.cgi?id=12624
|
|
|
|
struct SysTime
|
|
{
|
|
import imp12624;
|
|
|
|
Rebindable!(immutable TimeZone) _timezone = UTC();
|
|
}
|
|
|
|
|
|
class TimeZone
|
|
{
|
|
this(string , string , string ) immutable {}
|
|
}
|
|
|
|
|
|
class UTC : TimeZone
|
|
{
|
|
static immutable(UTC) opCall()
|
|
{
|
|
return _utc;
|
|
}
|
|
|
|
this() immutable {
|
|
super("UTC", "UTC", "UTC");
|
|
}
|
|
|
|
static _utc = new immutable(UTC);
|
|
}
|