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
blobfe61f98261766ce1a5c3204a53fc09e744d7e650
1 <?hh
3 // typical of code written before traits could declare constants
4 interface I1 {
5 const int X = 4;
7 trait T1 implements I1 {}
8 interface I2 {
9 const int X = 5;
11 trait T2 implements I2 {}
12 interface I3 {
13 const int X = 6;
15 trait T3 implements I3 {}
16 class C {
17 use T1, T2, T3;