mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
14 lines
159 B
TypeScript
14 lines
159 B
TypeScript
|
|
||
|
class A {}
|
||
|
|
||
|
abstract class B extends A {}
|
||
|
|
||
|
class C extends B {}
|
||
|
|
||
|
var AA : typeof A = B;
|
||
|
var BB : typeof B = A;
|
||
|
var CC : typeof C = B;
|
||
|
|
||
|
new AA;
|
||
|
new BB;
|
||
|
new CC;
|