New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / shape_unification_disallows_providing_optional_field_where_required_field_is_consumed.php
blob2ef43c2bae2526f5daf2f76836d32d1cff30f143
1 <?hh // partial
3 class MyWrapper<T> {}
5 function take_shape(MyWrapper<shape('x' => int)> $x): void {}
7 function test(MyWrapper<shape(?'x' => int)> $x): void {
8 take_shape($x);