Add trivial entry points to various tests
[hiphop-php.git] / hphp / test / slow / class_type_constant / type_constant8.php
blob9ac87ffb830bbe0c2b6151c20747c44fba92c6ce
1 <?hh
3 interface I {
4 abstract const type T;
6 public function foo(this::T $t): void;
9 class Incompat implements I {
10 const type T = mixed;
12 // If an interface parameter is defined in terms of a type constant then we
13 // require implementers to provide a type hint
14 public function foo($t): void {}
17 <<__EntryPoint>>
18 function main(): void {
19 echo "Done.\n";