sync the repo
[hiphop-php.git] / hphp / hack / test / typecheck / iface_require_incompat4.php
blobcea789029df83640f9ad8fdea4bca6bb31fd5506
1 <?hh
3 class Super<T> {
4 public ?T $x;
7 interface I1 {
8 require extends Super<int>;
11 interface I2 {
12 require extends Super<float>;
15 // On its own this is not an error
16 interface I3 extends I1, I2 {}
18 // But as soon as it is used, we fail to extend Super<float>
19 class C extends Super<int> implements I3 { }