mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixed some of the baselines, made file comparisons handle different
casing, put diagnostic message in correct order
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user