9 lines
206 B
TypeScript
9 lines
206 B
TypeScript
class Base {
|
|
constructor(opt?) { }
|
|
foo(other?) { }
|
|
}
|
|
class Derived extends Base {
|
|
}
|
|
var d = new Derived(); // bug caused an error here, couldn't select overload
|
|
var d2: Derived;
|
|
d2.foo();
|