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
No error on use of `unsafe_cast`
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
array_append_dict_element_property_bad.php
blob
9d34d7e6970ca49f18b75963a3ac0153afc8e0ba
1
<
?hh
// strict
2
// Copyright 2004-present Facebook. All Rights Reserved.
3
4
class
C
{
5
public
vec
<
int
>
$vs
=
vec
[];
6
}
7
8
function
test
(
dict
<
string
,
C
>
$d
):
void
{
9
$d
[
'foo'
]->
vs
[] =
'bar'
;
10
}