Fixed some of the baselines, made file comparisons handle different

casing, put diagnostic message in correct order
This commit is contained in:
ChrisBubernak
2014-09-26 07:47:44 -07:00
parent a12c35b69b
commit 93db897778
5 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -3833,7 +3833,7 @@ module ts {
var referenceFilename = matchResult[3];
var basePath = getDirectoryPath(file.filename);
var referenceFullPath = normalizePath(combinePaths(basePath, referenceFilename));
if (file.filename === referenceFullPath) {
if (file.filename.toLocaleLowerCase() === referenceFullPath.toLocaleLowerCase()) {
errorAtPos(start, length, Diagnostics.A_file_cannot_have_a_reference_to_itself);
}
else {