Skip to content

Commit c68d722

Browse files
committed
marked experimental feature
1 parent 37f4965 commit c68d722

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Transpiler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,7 @@ export class LuaTranspiler {
792792
const funcName = node.expression.name.escapedText;
793793
let funcHolder = tsEx.findMemberHolder(expType, funcName, this.checker);
794794

795+
// ===== EXPERIMENTAL https://github.com/Perryvw/TypescriptToLua/issues/56
795796
if (ts.isParenthesizedExpression(node.expression.expression)
796797
&& (ts.isAsExpression(node.expression.expression.expression)
797798
|| ts.isTypeAssertion(node.expression.expression.expression))
@@ -801,6 +802,7 @@ export class LuaTranspiler {
801802
funcHolder = castTypeNode.getText();
802803
}
803804
}
805+
// ===== END EXPERIMENTAL
804806

805807
if (funcHolder === undefined) {
806808
throw new TranspileError(`Could not find func ${funcName} on ${expType.symbol.name}`, node);

0 commit comments

Comments
 (0)