mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
44 lines
504 B
TypeScript
44 lines
504 B
TypeScript
//// [tests/cases/compiler/clinterfaces.ts] ////
|
|
|
|
//// [clinterfaces.ts]
|
|
namespace M {
|
|
class C { }
|
|
interface C { }
|
|
interface D { }
|
|
class D { }
|
|
}
|
|
|
|
interface Foo<T> {
|
|
a: string;
|
|
}
|
|
|
|
class Foo<T>{
|
|
b: number;
|
|
}
|
|
|
|
class Bar<T>{
|
|
b: number;
|
|
}
|
|
|
|
interface Bar<T> {
|
|
a: string;
|
|
}
|
|
|
|
export = Foo;
|
|
|
|
|
|
//// [clinterfaces.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M) {
|
|
class C {
|
|
}
|
|
class D {
|
|
}
|
|
})(M || (M = {}));
|
|
class Foo {
|
|
}
|
|
class Bar {
|
|
}
|
|
module.exports = Foo;
|