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