TypeScript/tests/cases/compiler/functionWithSameNameAsField.ts

8 lines
148 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
class TestProgressBar {
public total: number;
public total(total: number) {
this.total = total;
return this;
}
}