mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
20 lines
443 B
TypeScript
20 lines
443 B
TypeScript
// @target: esnext
|
|
// @useDefineForClassFields: false
|
|
interface Mup<K, V> {
|
|
readonly size: number;
|
|
}
|
|
interface MupConstructor {
|
|
new(): Mup<any, any>;
|
|
new<K, V>(entries?: readonly (readonly [K, V])[] | null): Mup<K, V>;
|
|
readonly prototype: Mup<any, any>;
|
|
}
|
|
declare var Mup: MupConstructor;
|
|
|
|
class Sizz extends Mup {
|
|
// ok, because Mup is an interface
|
|
get size() { return 0 }
|
|
}
|
|
class Kasizz extends Mup {
|
|
size = -1
|
|
}
|