TypeScript/tests/cases/compiler/optionalConstructorArgInSuper.ts

10 lines
206 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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();