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 conflicting concrete typeconst check, change class const map to not consider...
[hiphop-php.git]
/
hphp
/
hack
/
test
/
typecheck
/
stricter_consts
/
conflict_via.bad.php
blob
fe61f98261766ce1a5c3204a53fc09e744d7e650
1
<
?hh
2
3
// typical of code written before traits could declare constants
4
interface
I1
{
5
const
int
X
=
4
;
6
}
7
trait T1
implements
I1
{}
8
interface
I2
{
9
const
int
X
=
5
;
10
}
11
trait T2
implements
I2
{}
12
interface
I3
{
13
const
int
X
=
6
;
14
}
15
trait T3
implements
I3
{}
16
class
C
{
17
use
T1
,
T2
,
T3
;
18
}