Skip to content

Commit 685ff96

Browse files
author
Alex D
committed
more fixes
1 parent 1b754ca commit 685ff96

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/emitterlua.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3108,7 +3108,8 @@ export class EmitterLua {
31083108
thisCall = true;
31093109

31103110
const typeInfo = this.typeInfo.getVariableDeclarationOfTypeOfNode(node.expression);
3111-
if (typeInfo && typeInfo.kind === ts.SyntaxKind.ModuleDeclaration) {
3111+
if (typeInfo && typeInfo.kind === ts.SyntaxKind.ModuleDeclaration
3112+
|| this.typeInfo.isTypeOfNode(node.expression, 'any')) {
31123113
thisCall = false;
31133114
}
31143115
}

test/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
a = "\t";
1+
declare var os: any;
2+
3+
os.time();

0 commit comments

Comments
 (0)