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
make `Switch` constructor more precise
[hiphop-php.git]
/
hphp
/
test
/
slow
/
type_constant.php
blob
57e9412315d58ad060eb760353200645e8d656d5
1
<
?hh
2
3
trait T1
{
4
const
type T
=
string
;
5
}
6
7
class
C
{
8
use
T1
;
9
}
10
11
<<
__EntryPoint
>>
12
function
main
() {
13
var_dump
(
type_structure
(
C
::
class
,
'T'
));
14
}