class C { foo: string; } interface C { foo: string; } module M { class D { bar: string; } interface D { bar: string; } }