No error on use of `unsafe_cast`
[hiphop-php.git] / hphp / hack / test / typecheck / construct_consist2.php
blob3418b6e3a15cad8d6722d326b5c26f163afea59e
1 <?hh // partial
3 <<__ConsistentConstruct>>
4 class C1 {}
6 class C2 extends C1 {
7 // optional arg is ok
8 public function __construct(?A $a = null) {}
11 class C3 extends C1 {
12 // another default constructor is OK
15 class A {}