Support is and as
[hiphop-php.git] / hphp / hack / test / decl / nested_namespaces.php
blob7ede83b77df95479a67f633a2c15d0142cc3a055
1 <?hh
3 namespace MyNamespace {
5 type MyString = string;
6 type MyInt = int;
7 type MyFloat = float;
8 type MyNum = num;
9 type MyBool = bool;
11 type MyNamespacedType = \MyNamespace\MyString;
13 namespace InnerNamespace {
14 type MyInnerType = string;
15 type MyDoubleNamespacedType = \MyNamespace\MyNamespacedType;
18 namespace Very\Inner\Namespace {
19 type MyVeryInnerNamespaceType = string;
20 class MyClass {}
23 type MyVeryInnerNamespaceType = Very\Inner\Namespace\MyVeryInnerNamespaceType;
24 const MyVeryInnerNamespaceType hello = "hello";