Add switch to disable legacy soft typehints
[hiphop-php.git] / hphp / hack / test / full_fidelity / cases / legacy_soft_typehints / no_legacy_soft_typehints.php
blob69c4d9ae801719c9bf16ac52206b658252f8169d
1 <?hh
3 type t = @darray<int, @string>;
4 type u = varray<@int>;
6 function f<T>(): void {}
8 function g(@int $_): @string {
9 f<@float>();
10 return "hello";
13 abstract class C {
14 <<TestAttr>> protected @float $x;
15 const type T = @int;
16 public function __construct(<<TestAttr>> public @int $y) {}
17 public async function f(): Awaitable<@int> {
18 return 42;