mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
16 lines
342 B
TypeScript
16 lines
342 B
TypeScript
//// [tests/cases/compiler/ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts] ////
|
|
|
|
//// [ClassDeclarationWithInvalidConstOnPropertyDeclaration2.ts]
|
|
class C {
|
|
const
|
|
x = 10;
|
|
}
|
|
|
|
//// [ClassDeclarationWithInvalidConstOnPropertyDeclaration2.js]
|
|
"use strict";
|
|
class C {
|
|
constructor() {
|
|
this.x = 10;
|
|
}
|
|
}
|