TypeScript/tests/cases/compiler/optionalConstructorArgInSuper.ts
2014-07-12 17:30:19 -07:00

10 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();