Check for void/noreturn in conditionals
[hiphop-php.git] / hphp / hack / test / typecheck / poly_instance_method_explicit_type_args.php
blobc76d27f8c11447f276186b450c0da3173f4dce35
1 <?hh // strict
3 class Foo {
4 public function bar<T1>(T1 $x): T1 {
5 return $x;
9 function f(): int {
10 $foo = new Foo();
11 $res = $foo->bar<int>(1);
12 return 0;