Allow function pointer builtins in constant initializers
[hiphop-php.git] / hphp / hack / test / typecheck / func_ptr_in_constants / disallowed / allowed_func_ptr_builtins.php
blob9d79268e98cf8d924758272be4f68cc5d8cca746
1 <?hh // partial
3 function foo() {}
5 class Cls {
6 public static function meth() {}
9 class A {
10 public static $arr = dict[
11 'foo' => fun('foo'),
12 'meth' => class_meth(Cls::class, 'meth'),
16 abstract class B {
17 const const_arr = dict[
18 'foo' => fun('foo'),
19 'meth' => class_meth(Cls::class, 'meth'),