Error on self::class on non final classes
[hiphop-php.git] / hphp / hack / test / typecheck / lambda_in_pipe.php
blob939b9155d29be22e55e98382862cbf1dbef5b2bd
1 <?hh // strict
2 // Copyright 2004-present Facebook. All Rights Reserved.
4 function vec_filter(vec<int> $v, (function (int): bool) $_f): vec<int> {
5 return $v;
8 function test(vec<int> $v): vec<int> {
9 return $v |> vec_filter($$, function ($x) { return true; });