Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / shape_key_exists2.php
blob1b64e7ae8227e2574162174aecfd7c8bd4a0866c
1 <?hh // strict
3 // Nonexisting field in declared shape
5 type s = shape(
6 'x' => int,
7 ...
8 );
10 function test(s $s): void {
11 Shapes::idx($s, 'y');