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
Disallow ... without type in function typehints
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
array_append_vec_property_good.php
blob
19f79c5699f07afb5c2069090be931966d5925cb
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
C
{
5
public
vec
<
string
>
$vs
=
vec
[];
6
}
7
8
function
test
(
C
$c
):
void
{
9
$c
->
vs
[] =
'foo'
;
10
}