// @target: es2015
namespace _provider {
                export class UsefulClass {
                                public foo() {
                                }
                }
}

namespace consumer {
                import provider = _provider;
                
                var g:provider.UsefulClass= null;
                
                function use():provider.UsefulClass { 
                                var p2:provider.UsefulClass= new provider.UsefulClass();
                                return p2; 
                }
}

