make `Switch` constructor more precise
[hiphop-php.git] / hphp / test / slow / gvn-crash-13368505.php
blobf50662121d2daed61ca79d081bea0ebe4aac5aae
1 <?hh
3 class XDate extends DateTime
5 public function myFormat()
8 $return = parent::format("Y-m-d H:i:s");
9 parent::setTimezone(GvnCrash13368505Php::$gmt);
13 function main() {
16 $date = new XDate('now', GvnCrash13368505Php::$gmt);
17 $date->myFormat();
19 $date = new XDate('now', GvnCrash13368505Php::$gmt);
20 $date->myFormat();
23 abstract final class GvnCrash13368505Php {
24 public static $gmt;
26 <<__EntryPoint>>
27 function entrypoint_gvncrash13368505(): void {
28 // Copyright 2004-present Facebook. All Rights Reserved.
30 GvnCrash13368505Php::$gmt = new DateTimeZone('GMT');
32 main();
33 echo "DONE\n";