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
add wip tests for the interaction of traits and constants
[hiphop-php.git]
/
hphp
/
hack
/
test
/
shape_analysis
/
solve_constraints
/
trait_const_1_wip.php
blob
0dca882ab352c06ea2fc3cb3776b93a5c0a17ae8
1
<
?hh
2
3
trait TheTrait
{
4
// T136213776: expect ?b key in shape type
5
const
dict
<
string
,
mixed
>
DICT
=
dict
[];
6
}
7
8
class
TheClass
{
9
use
TheTrait
;
10
}
11
12
function
main
():
void
{
13
TheClass
::
DICT
[
'b'
];
14
}