TypeScript/tests/cases/compiler/declarationEmitClassMemberNameConflict.ts
2016-09-15 08:59:14 -07:00

39 lines
694 B
TypeScript

// @target: es5
// @module: commonjs
// @declaration: true
export class C1 {
C1() { } // has to be the same as the class name
bar() {
return function (t: typeof C1) {
};
}
}
export class C2 {
C2: any // has to be the same as the class name
bar() {
return function (t: typeof C2) {
};
}
}
export class C3 {
get C3() { return 0; } // has to be the same as the class name
bar() {
return function (t: typeof C3) {
};
}
}
export class C4 {
set C4(v) { } // has to be the same as the class name
bar() {
return function (t: typeof C4) {
};
}
}