Basic flow analysis on if statements
[hiphop-php.git] / hphp / test / slow / types / builtin_coerce_param_mode.php
blob06d697339674ca6a69481133cf0198e4bf9cea97
1 <?hh
2 <<__EntryPoint>> function main(): void {
3 // HNI ParamCoerceModeNull
4 try { var_dump(bcscale(varray[])); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
5 $x = bcscale<>;
6 try { var_dump($x(varray[])); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
8 // IDL ParamCoerceModeNull
9 try { var_dump(sqrt(varray[])); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }
10 $x = sqrt<>;
11 try { var_dump($x(varray[])); } catch (Exception $e) { echo "\n".'Warning: '.$e->getMessage().' in '.__FILE__.' on line '.__LINE__."\n"; }