Add conflicting concrete typeconst check, change class const map to not consider...
[hiphop-php.git] / hphp / hack / test / typecheck / stricter_consts / trait_typeconst_1.bad.php
blob1871b600244eeafea1977ac59c9dddde38d8340b
1 <?hh
2 // Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
4 // Error: a child attempting to override a parent’s constant with a constant
5 // from a trait will fatal
7 class C {
8 const type Ty = int;
11 trait T {
12 const type Ty = string;
15 class D extends C {
16 use T;