File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments