Fix bug in hack codegen for sets
[hiphop-php.git] / hphp / hack / test / typecheck / lambda / lambda11.php
blobac5c68f22aedfc094f299382ad855f94af5102d2
1 <?hh
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 foo(bool $x): void {
13 if ($x) {
14 $y = "asd";
16 $z = $l ==> $y; // $y bad_style, even in a capture