repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Allow function pointer builtins in constant initializers
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
func_ptr_in_constants
/
disallowed
/
allowed_func_ptr_builtins.php
blob
9d79268e98cf8d924758272be4f68cc5d8cca746
1
<
?hh
// partial
2
3
function
foo
() {}
4
5
class
Cls
{
6
public static function
meth
() {}
7
}
8
9
class
A
{
10
public static
$arr
=
dict
[
11
'foo'
=>
fun
(
'foo'
),
12
'meth'
=>
class_meth
(
Cls
::
class
,
'meth'
),
13
];
14
}
15
16
abstract class
B
{
17
const
const_arr
=
dict
[
18
'foo'
=>
fun
(
'foo'
),
19
'meth'
=>
class_meth
(
Cls
::
class
,
'meth'
),
20
];
21
}