3 * Copyright (c) 2014, Facebook, Inc.
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 <<__ConsistentConstruct
>>
14 public function getAnon1(): (function(this
): int) {
15 return function(this
$x): int {
20 public function test(): void
{
21 $func = $this->getAnon1();
26 // Can pass an alias of $this
30 // Can pass new static()