mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
437 B
TypeScript
26 lines
437 B
TypeScript
//// [tests/cases/conformance/classes/classDeclarations/classAndInterfaceWithSameName.ts] ////
|
|
|
|
//// [classAndInterfaceWithSameName.ts]
|
|
class C { foo: string; }
|
|
interface C { foo: string; }
|
|
|
|
namespace M {
|
|
class D {
|
|
bar: string;
|
|
}
|
|
|
|
interface D {
|
|
bar: string;
|
|
}
|
|
}
|
|
|
|
//// [classAndInterfaceWithSameName.js]
|
|
"use strict";
|
|
class C {
|
|
}
|
|
var M;
|
|
(function (M) {
|
|
class D {
|
|
}
|
|
})(M || (M = {}));
|