mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
5 lines
138 B
TypeScript
5 lines
138 B
TypeScript
|
function foo() { }
|
||
|
|
||
|
var x = new foo(); // can be used as a constructor function
|
||
|
|
||
|
class C extends foo { } // error, cannot extend it though
|