TypeScript/tests/baselines/reference/functionWithSameNameAsField.errors.txt

11 lines
311 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/functionWithSameNameAsField.ts (1 errors) ====
class TestProgressBar {
public total: number;
public total(total: number) {
~~~~~
!!! Duplicate identifier 'total'.
this.total = total;
return this;
}
}