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
/
constants
/
inherited_concrete_wins_multiple.php
blob
b2fcb043c70699584e79bf6c6c8ac39a036ca7fa
1
<
?hh
2
3
interface
I1
{
4
abstract const
type T
=
int
;
5
}
6
interface
I2
{
7
const
type T
=
bool
;
8
}
9
interface
I3
{
10
abstract const
type T
=
string
;
11
}
12
13
class
C
implements
I1
,
I2
,
I3
{}
14
15
<<
__EntryPoint
>>
16
function
main
():
void
{
17
// expecting TypeStructureKind::OF_BOOL = 2
18
var_dump
(
type_structure
(
C
::
class
,
"T"
));
19
}