28 lines
469 B
TypeScript
28 lines
469 B
TypeScript
//// [classAndInterfaceWithSameName.ts]
|
|
class C { foo: string; }
|
|
interface C { foo: string; } // error
|
|
|
|
module M {
|
|
class D {
|
|
bar: string;
|
|
}
|
|
|
|
interface D { // error
|
|
bar: string;
|
|
}
|
|
}
|
|
|
|
//// [classAndInterfaceWithSameName.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
return C;
|
|
})();
|
|
var M;
|
|
(function (M) {
|
|
var D = (function () {
|
|
function D() {
|
|
}
|
|
return D;
|
|
})();
|
|
})(M || (M = {}));
|