sync the repo
[hiphop-php.git] / hphp / test / quick / parse_type_not_typedef.php
blob84ebc2a817be3eb44004c818c0277855de3d825d
1 <?hh
3 // ok, 'type' is context sensitive
4 function type() :mixed{
5 echo "Hi\n";
8 class Foo {
9 const TYPE = 'hi2';
12 type t = int;
13 function wat(t $type) :mixed{
14 echo $type . "\n";
16 <<__EntryPoint>> function main(): void {
17 type();
19 echo Foo::TYPE . "\n";
21 wat(12);