11 lines
No EOL
311 B
Text
11 lines
No EOL
311 B
Text
==== tests/cases/compiler/functionWithSameNameAsField.ts (1 errors) ====
|
|
class TestProgressBar {
|
|
public total: number;
|
|
public total(total: number) {
|
|
~~~~~
|
|
!!! Duplicate identifier 'total'.
|
|
this.total = total;
|
|
return this;
|
|
}
|
|
}
|
|
|