2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// module M {
|
|
|
|
//// export class A {
|
|
|
|
//// constructor(a: string) {}
|
|
|
|
//// public m(n: number) {
|
|
|
|
//// return 0;
|
|
|
|
//// }
|
|
|
|
//// public n() {
|
|
|
|
//// return this.m(0);
|
|
|
|
//// }
|
|
|
|
//// }
|
2017-01-26 20:02:08 +01:00
|
|
|
//// export class B extends A {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// constructor(a: string) {
|
|
|
|
//// super(a);
|
|
|
|
//// }
|
2017-01-26 20:02:08 +01:00
|
|
|
//// /*1*/
|
2015-03-02 23:41:44 +01:00
|
|
|
//// }
|
|
|
|
//// var a = new A("s");
|
|
|
|
//// var b = new B("s");
|
|
|
|
//// }
|
|
|
|
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.noErrors();
|
2015-03-02 23:41:44 +01:00
|
|
|
goTo.marker('1');
|
|
|
|
edit.insert("public m(n: number) { return 0; }");
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.noErrors();
|