TypeScript/tests/cases/compiler/duplicateClassElements.ts

44 lines
573 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
class a {
public a;
public a;
public b() {
}
public b() {
}
public x;
get x() {
return 10;
}
set x(_x: number) {
}
get y() {
return "Hello";
}
set y(_y: string) {
}
public z() {
}
get z() {
return "Hello";
}
set z(_y: string) {
}
get x2() {
return 10;
}
set x2(_x: number) {
}
public x2;
get z2() {
return "Hello";
}
set z2(_y: string) {
}
public z2() {
}
}