File: quickInfoOnMergedInterfacesWithIncrementalEdits.ts

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/// <reference path='fourslash.ts'/>

////module MM {
////    interface B<T> {
////        foo: number;
////    }
////    interface B<T> {
////        bar: string;
////    }
////    var b: B<string>;
////    var r3 = b.foo; // number
////    var r/*2*/4 = b.b/*1*/ar; // string
////}

goTo.marker('1');
verify.quickInfoIs("(property) B<string>.bar: string");
edit.deleteAtCaret(1);
edit.insert('z');
verify.quickInfoIs("any");
verify.numberOfErrorsInCurrentFile(1);
edit.backspace(1);
edit.insert('a');
verify.quickInfoIs("(property) B<string>.bar: string");
goTo.marker('2');
verify.quickInfoIs("var r4: string");
verify.numberOfErrorsInCurrentFile(0);