mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
14 lines
423 B
Plaintext
14 lines
423 B
Plaintext
main.js(7,1): error TS2673: Constructor of class 'C' is private and only accessible within the class declaration.
|
|
|
|
|
|
==== main.js (1 errors) ====
|
|
// https://github.com/microsoft/typescript-go/issues/4219
|
|
|
|
class C {
|
|
/** @private */
|
|
constructor() {}
|
|
}
|
|
new C();
|
|
~~~~~~~
|
|
!!! error TS2673: Constructor of class 'C' is private and only accessible within the class declaration.
|
|
|