5 lines
No EOL
159 B
TypeScript
5 lines
No EOL
159 B
TypeScript
function Foo() {
|
|
this.x = 1;
|
|
}
|
|
var x = new Foo(); // legal, considered a constructor function
|
|
class C extends Foo {} // error, could not find symbol Foo
|