Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / construct_consist3.php
blob90b923cbeb989688c4752c2e4ca01382b61054f9
1 <?hh
3 <<__ConsistentConstruct>>
4 class C1 {}
6 class C2 extends C1 {
7 <<__UNSAFE_Construct>> // explicitly inconsistent with C1
8 public function __construct(A $a) {}
11 class C3 extends C2 {
12 // still has to be consistent, but now with C2!
13 public function __construct() {
14 parent::__construct(new A());