mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
358 B
TypeScript
17 lines
358 B
TypeScript
//// [tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts] ////
|
|
|
|
//// [parser509668.ts]
|
|
class Foo3 {
|
|
// Doesn't work, but should
|
|
constructor (public ...args: string[]) { }
|
|
}
|
|
|
|
//// [parser509668.js]
|
|
"use strict";
|
|
class Foo3 {
|
|
// Doesn't work, but should
|
|
constructor(...args) {
|
|
this.args = args;
|
|
}
|
|
}
|