New inference: improved error message for unresolved type
[hiphop-php.git] / hphp / hack / test / typecheck / pipe_operator_dollardollar_static_call.php
blob094b5c2ee8e414d971bfc84937d502d567b1ea8f
1 <?hh // strict
3 class Foo {
4 public static function fooMeth(): void {}
7 function test_method_call(): void {
8 $foo = Foo::class;
10 $foo |> $$::fooMeth(); // this is a legal call
11 $foo |> $$::doesNotExist(); // ...and this one doesn't exist