New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / shape2.php
blobc0a7673786e03cd67427d8725714ab1958de5f9e
1 <?hh // partial
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the MIT license found in the
7 * LICENSE file in the "hack" directory of this source tree.
12 type myshape = shape(
13 'field1' => int,
14 'field2' => bool,
17 function test(): myshape {
18 $x = shape('field1' => 1);
19 return $x;