2014-10-29 21:58:27 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: refFile1.ts
|
|
|
|
//// class D { }
|
|
|
|
|
|
|
|
// @Filename: refFile2.ts
|
|
|
|
//// export class E {}
|
|
|
|
|
|
|
|
// @Filename: main.ts
|
|
|
|
// @ResolveReference: true
|
|
|
|
//// ///<reference path="refFile1.ts" />
|
|
|
|
//// /*1*////<reference path = "NotExistRef.ts" />/*2*/
|
|
|
|
//// /*3*////<reference path "invalidRefFile1.ts" />/*4*/
|
|
|
|
//// import ref2 = require("refFile2");
|
|
|
|
//// import noExistref2 = require(/*5*/"NotExistRefFile2"/*6*/);
|
|
|
|
//// import invalidRef1 /*7*/require/*8*/("refFile2");
|
|
|
|
//// /*9*/import invalidRef2 = requi/*10*/("refFile2");
|
|
|
|
//// var obj: /*11*/C/*12*/;
|
|
|
|
//// var obj1: D;
|
|
|
|
//// var obj2: ref2.E;
|
|
|
|
|
|
|
|
goTo.file("main.ts");
|
|
|
|
verify.numberOfErrorsInCurrentFile(7);
|
|
|
|
verify.errorExistsBetweenMarkers("1", "2");
|
|
|
|
verify.errorExistsBetweenMarkers("3", "4");
|
|
|
|
verify.errorExistsBetweenMarkers("5", "6");
|
|
|
|
verify.errorExistsBetweenMarkers("7", "8");
|
2014-10-30 23:34:54 +01:00
|
|
|
verify.errorExistsBetweenMarkers("9", "10"); // At this position, there are two diagnostic messages: ';' expected, Cannot find name 'requi'
|
2014-10-29 21:58:27 +01:00
|
|
|
verify.errorExistsBetweenMarkers("11", "12");
|
|
|
|
|
|
|
|
|
|
|
|
|