swc/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsInJs.ts

33 lines
625 B
TypeScript

// @target: esnext
// @lib: esnext
// @declaration: true
// @allowJs: true
// @checkJs: true
// @filename: uniqueSymbolsDeclarationsInJs.js
// @out: uniqueSymbolsDeclarationsInJs-out.js
// classes
class C {
/**
* @readonly
*/
static readonlyStaticCall = Symbol();
/**
* @type {unique symbol}
* @readonly
*/
static readonlyStaticType;
/**
* @type {unique symbol}
* @readonly
*/
static readonlyStaticTypeAndCall = Symbol();
static readwriteStaticCall = Symbol();
/**
* @readonly
*/
readonlyCall = Symbol();
readwriteCall = Symbol();
}