Handle this typehints
[hiphop-php.git] / hphp / test / quick / cgetm_retbase.php
blob8feef016aa878c6efc370bdf520f1c9d66330409
1 <?hh
2 function f() { $a = array(); $a[] = 1; return $a; }
3 function nonHphpArray( ) {
4 apc_add('foo', array(1, 2, 3));
5 return apc_fetch('foo');
7 function test1() {
8 return f()[0];
10 function main() {
11 var_dump(test1());
12 var_dump(nonHphpArray()[0]);
15 main();