Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / functional_higher_order2.php
blob66445f5ad35124bc48837c983fd2944a384c3a04
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 build<T>(T $x): (function(T): T) {
13 return function(T $y): T use ($x) {
14 return $y;