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
Handle this typehints
[hiphop-php.git]
/
hphp
/
test
/
slow
/
vec
/
bad-type-conversion.php
blob
274017aafe72ad50beb6ff3f6c3cc521bd6ba193
1
<
?hh
2
3
async
function
foo
() {
4
static
$x
=
false
;
$x
= !
$x
;
return
$x
;
5
}
6
7
class
X
{
8
public
async
function
f
() {
9
$buckets
=
vec
[];
10
11
$foo
=
await
foo
();
12
if
(
$foo
) {
13
$buckets
[] =
"hello"
;
14
}
15
16
return
$this
->
g
(
$buckets
);
17
}
18
19
public function
g
(
vec
$v
) {
return
$v
; }
20
}
21
22
function
test
() {
23
$x
=
new
X
;
24
var_dump
(
HH\Asio\
join
(
$x
->
f
()));
25
var_dump
(
HH\Asio\
join
(
$x
->
f
()));
26
}
27
28
test
();