mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
21 lines
411 B
TypeScript
21 lines
411 B
TypeScript
//// [tests/cases/compiler/functionWithSameNameAsField.ts] ////
|
|
|
|
//// [functionWithSameNameAsField.ts]
|
|
class TestProgressBar {
|
|
public total: number;
|
|
public total(total: number) {
|
|
this.total = total;
|
|
return this;
|
|
}
|
|
}
|
|
|
|
|
|
//// [functionWithSameNameAsField.js]
|
|
"use strict";
|
|
class TestProgressBar {
|
|
total(total) {
|
|
this.total = total;
|
|
return this;
|
|
}
|
|
}
|