Updating submodules
[hiphop-php.git] / hphp / hack / test / typecheck / function_pointer / parses_as_class_const.php
blob4f9086206bb3cf7da6d16c07e69a2d1dcba76edd
1 <?hh
3 final class Foo {
4 public static function bar(int $x): void {}
7 function qux(): void {
8 // This parses into Foo::bar, so allow it
9 $x = Foo::{'bar'}<>;
10 $x(4);
13 <<__EntryPoint>>
14 function main(): void {
15 qux();