We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b5464 commit a9cf43dCopy full SHA for a9cf43d
src/javaTranspiler.ts
@@ -1116,9 +1116,11 @@ export class JavaTranspiler extends BaseTranspiler {
1116
}
1117
1118
printInstanceOfExpression(node, identation) {
1119
- const left = node.left.escapedText;
+ // const left = node.left.escapedText;
1120
const right = node.right.escapedText;
1121
- return this.getIden(identation) + `${left} instanceof ${right}`;
+ const left = this.printNode(node.left, 0);
1122
+ // const right = this.printNode(node.right, 0);
1123
+ return this.getIden(identation) + `Helpers.isInstance(${left}, ${right}.class)`;
1124
1125
1126
printAwaitExpression(node, identation) {
0 commit comments