Disallow ... without type in function typehints
[hiphop-php.git] / hphp / hack / test / typecheck / shape1.php
blob4f6bc3b13be9de5687aa1e0fe7b6eb3082acbcdb
1 <?hh // strict
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, 'field2' => true);
19 return $x;