2014-07-13 01:04:16 +02:00
|
|
|
/// <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
|
2014-10-01 01:53:10 +02:00
|
|
|
//// var r/*2*/4 = b.b/*1*/ar; // string
|
2014-07-13 01:04:16 +02:00
|
|
|
////}
|
|
|
|
|
|
|
|
goTo.marker('1');
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfoIs("(property) B<string>.bar: string");
|
2014-07-13 01:04:16 +02:00
|
|
|
edit.deleteAtCaret(1);
|
|
|
|
edit.insert('z');
|
2014-10-09 22:18:08 +02:00
|
|
|
verify.quickInfoIs("any");
|
2014-07-13 01:04:16 +02:00
|
|
|
verify.numberOfErrorsInCurrentFile(1);
|
|
|
|
edit.backspace(1);
|
2014-10-01 01:53:10 +02:00
|
|
|
edit.insert('a');
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfoIs("(property) B<string>.bar: string");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('2');
|
2016-09-09 18:02:55 +02:00
|
|
|
verify.quickInfoIs("var r4: string");
|
2017-01-26 20:02:08 +01:00
|
|
|
verify.noErrors();
|