swc/crates/swc_ecma_parser/tests/tsc/privateNamesIncompatibleModifiersJs.ts
2022-02-04 17:08:38 +09:00

66 lines
841 B
TypeScript

// @allowJs: true
// @checkJs: true
// @strict: true
// @target: es6
// @outDir: ./out
// @filename: privateNamesIncompatibleModifiersJs.js
class A {
/**
* @public
*/
#a = 1;
/**
* @private
*/
#b = 1;
/**
* @protected
*/
#c = 1;
/**
* @public
*/
#aMethod() { return 1; }
/**
* @private
*/
#bMethod() { return 1; }
/**
* @protected
*/
#cMethod() { return 1; }
/**
* @public
*/
get #aProp() { return 1; }
/**
* @public
*/
set #aProp(value) { }
/**
* @private
*/
get #bProp() { return 1; }
/**
* @private
*/
set #bProp(value) { }
/**
* @protected
*/
get #cProp() { return 1; }
/**
* @protected
*/
set #cProp(value) { }
}