Updating submodules
[hiphop-php.git] / hphp / hack / test / typecheck / function_pointer / bad_syntax.php
blob79a8c1b32906a6810f96cd1d14c8011d046edb14
1 <?hh
3 final class Foo {
4 public static function bar(int $x): void {}
7 function qux(): void {
8 $y = new Foo();
9 $x = $y::{'bar'}<>;
10 $x(4);
13 function adze(): void {
14 $y = new Foo();
15 $z = 'bar';
16 $x = $y::$z<>;
17 $x(4);