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
|
|
|
////}
|
|
|
|
|
|
|
|
diagnostics.setEditValidation(IncrementalEditValidation.None);
|
|
|
|
|
|
|
|
goTo.marker('1');
|
2014-10-06 21:29:49 +02:00
|
|
|
verify.quickInfoIs("(property) B<string>.bar: string", undefined);
|
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');
|
2014-10-06 21:29:49 +02:00
|
|
|
verify.quickInfoIs("(property) B<string>.bar: string", undefined);
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('2');
|
2014-10-01 01:53:10 +02:00
|
|
|
verify.quickInfoIs("(var) r4: string", undefined);
|
2014-07-13 01:04:16 +02:00
|
|
|
verify.numberOfErrorsInCurrentFile(0);
|