mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
280 B
TypeScript
17 lines
280 B
TypeScript
//// [tests/cases/compiler/constructorArgsErrors4.ts] ////
|
|
|
|
//// [constructorArgsErrors4.ts]
|
|
class foo {
|
|
constructor (private public a: number) {
|
|
}
|
|
}
|
|
|
|
|
|
//// [constructorArgsErrors4.js]
|
|
"use strict";
|
|
class foo {
|
|
constructor(a) {
|
|
this.a = a;
|
|
}
|
|
}
|