There was an error while loading. Please reload this page.
1 parent 1b754ca commit 685ff96Copy full SHA for 685ff96
src/emitterlua.ts
@@ -3108,7 +3108,8 @@ export class EmitterLua {
3108
thisCall = true;
3109
3110
const typeInfo = this.typeInfo.getVariableDeclarationOfTypeOfNode(node.expression);
3111
- if (typeInfo && typeInfo.kind === ts.SyntaxKind.ModuleDeclaration) {
+ if (typeInfo && typeInfo.kind === ts.SyntaxKind.ModuleDeclaration
3112
+ || this.typeInfo.isTypeOfNode(node.expression, 'any')) {
3113
thisCall = false;
3114
}
3115
test/test.ts
@@ -1 +1,3 @@
1
-a = "\t";
+declare var os: any;
2
+
3
+os.time();
0 commit comments