Skip to content

Commit 098a052

Browse files
committed
Remove temporary error-avoidance hack
1 parent 78a0b94 commit 098a052

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,8 +1385,7 @@ namespace ts {
13851385
function checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation: Node, name: __String, meaning: SymbolFlags): boolean {
13861386
if (meaning & (SymbolFlags.Value & ~SymbolFlags.NamespaceModule & ~SymbolFlags.Type)) {
13871387
const symbol = resolveSymbol(resolveName(errorLocation, name, SymbolFlags.NamespaceModule & ~SymbolFlags.Value, /*nameNotFoundMessage*/undefined, /*nameArg*/ undefined, /*isUse*/ false));
1388-
// TODO: WRONG
1389-
if (symbol && !isInJavaScriptFile(errorLocation)) {
1388+
if (symbol) {
13901389
error(errorLocation, Diagnostics.Cannot_use_namespace_0_as_a_value, unescapeLeadingUnderscores(name));
13911390
return true;
13921391
}

0 commit comments

Comments
 (0)