make `Switch` constructor more precise
[hiphop-php.git] / hphp / test / slow / ext_xml / T87354430.php
blob2a46bb070622af32d5e0751c736f5f39cc90aca7
1 <?hh
3 function test1() {
4 $a = new XMLReader();
5 $a->expand(new stdClass);
8 <<__EntryPoint>>
9 function main(): void {
10 $tests = vec[fun('test1')];
11 foreach ($tests as $t) {
12 try {
13 $t();
14 } catch (Exception $e) {
15 echo $e->getMessage()."\n";