TypeScript/tests/cases/compiler/superHasMethodsFromMergedInterface.ts
Nathan Shively-Sanders 4d67b0c2b6 Allow super to access method signatures
Previously, super was only allowed to access method *declarations*. But
method signatures can come from interfaces that merge with classes, and
should also be accessible as methods on super.
2017-01-27 09:53:57 -08:00

8 lines
109 B
TypeScript

class C { m1() { } }
interface C { m2(): void }
class Sub extends C {
m3() {
super.m2();
}
}