New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / subtype_array3.php
blobaa29ab95dfb3070b64c95aa39f9871e2ec4c66a1
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 function get_arr(): array<string, bool> {
13 return array(
14 'foo' => true,
15 'bar' => false,
19 function use_arr(array<mixed, mixed> $arr): void {
22 function test(): void {
23 $a = get_arr();
24 use_arr($a);