TypeScript/tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithTypeArgumentAndOverloadInES6.ts
2015-03-16 15:41:51 -07:00

23 lines
No EOL
357 B
TypeScript

// @target: es6
class B<T> {
x: T;
B: T;
constructor(a: any)
constructor(a: any,b: T)
constructor(a: T) { this.B = a;}
foo(a: T)
foo(a: any)
foo(b: string)
foo(): T {
return this.x;
}
get BB(): T {
return this.B;
}
set BBWith(c: T) {
this.B = c;
}
}