f84b2d20a9
Previously, this error was reported in the checker, so JS files with checkJs: false were not erroring on this invalid syntax.
13 lines
216 B
TypeScript
13 lines
216 B
TypeScript
// @allowJs: true
|
|
// @checkJs: false
|
|
// @noEmit: true
|
|
// @Filename: privateNameUncheckedJsOptionalChain.js
|
|
// @target: es2015
|
|
|
|
class C {
|
|
#bar;
|
|
constructor () {
|
|
this?.#foo;
|
|
this?.#bar;
|
|
}
|
|
}
|