// @target: es2015
declare namespace Foo {
	function a():void;
	var b:number;
	class C {}
}

Foo.a();
Foo.b;
var c = new Foo.C();

declare namespace Foo2 {
    export function a(): void;
    export var b: number;
    export class C { }
}

Foo2.a();
Foo2.b;
var c2 = new Foo2.C();