mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 06:36:08 +03:00
37 lines
710 B
TypeScript
37 lines
710 B
TypeScript
// @target: esnext
|
|
// @lib: esnext
|
|
// @declaration: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @filename: uniqueSymbolsDeclarationsInJs.js
|
|
// @out: uniqueSymbolsDeclarationsInJs-out.js
|
|
// @useDefineForClassFields: false
|
|
|
|
// 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();
|
|
}
|
|
|
|
/** @type {unique symbol} */
|
|
const a = Symbol();
|