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

17 lines
608 B
Plaintext
Raw Normal View History

2014-10-01 02:15:18 +02:00
tests/cases/compiler/functionWithSameNameAsField.ts(2,12): error TS2300: Duplicate identifier 'total'.
2014-10-01 20:27:20 +02:00
tests/cases/compiler/functionWithSameNameAsField.ts(3,12): error TS2300: Duplicate identifier 'total'.
2014-10-01 02:15:18 +02:00
==== tests/cases/compiler/functionWithSameNameAsField.ts (2 errors) ====
2014-07-13 01:04:16 +02:00
class TestProgressBar {
public total: number;
~~~~~
!!! error TS2300: Duplicate identifier 'total'.
2014-10-01 02:15:18 +02:00
public total(total: number) {
2014-10-01 20:27:20 +02:00
~~~~~
!!! error TS2300: Duplicate identifier 'total'.
2014-07-13 01:04:16 +02:00
this.total = total;
return this;
}
}