7 lines
122 B
TypeScript
7 lines
122 B
TypeScript
class Foo {
|
|
constructor(public x, y) { }
|
|
foo() {
|
|
var a = this.x;
|
|
return this.y;
|
|
}
|
|
}
|