Skip to content

Commit 7c7f9ad

Browse files
Added assertion.
1 parent e391439 commit 7c7f9ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,7 @@ namespace ts {
12431243
const parent = errorLocation.parent;
12441244
if (symbol) {
12451245
if (isQualifiedName(parent)) {
1246+
Debug.assert(parent.left === errorLocation, "Should only be resolving left side of qualified name as a namespace");
12461247
const propName = parent.right.escapedText;
12471248
const propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName);
12481249
if (propType) {

0 commit comments

Comments
 (0)