Infer into namespaces for type declarations