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
Basic flow analysis on if statements
[hiphop-php.git]
/
hphp
/
test
/
slow
/
bad-reified.php
blob
5297e4d8419755c00d1f15f0836e7ea0b83c214e
1
<
?hh
2
3
function
uhoh
<
reify T
>() {
4
var_dump
(
HH\ReifiedGenerics\get_type_structure
<
T
>());
5
}
6
7
class
F
{
8
const
type TWat
=
vec
<
HelloAlias
>;
9
10
function
go
() {
11
uhoh
<
this
::
TWat
>();
12
}
13
}
14
15
<<
__EntryPoint
>>
16
function
main
() {
17
include
"bad-reified.inc"
;
18
(
new
F
)->
go
();
19
}