File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -917,7 +917,8 @@ export class LuaTranspiler {
917917 return this . transpileArrayCallExpression ( node ) ;
918918 }
919919
920- if ( expType . symbol && ( expType . symbol . flags & ts . SymbolFlags . Namespace ) ) {
920+ if ( expType . symbol && ( ( expType . symbol . flags & ts . SymbolFlags . Namespace )
921+ || ( expType . symbol . flags & ts . SymbolFlags . TypeLiteral ) ) ) {
921922 // Don't replace . with : for namespaces
922923 callPath = this . transpileExpression ( node . expression ) ;
923924 params = this . transpileArguments ( node . arguments ) ;
Original file line number Diff line number Diff line change 1+ classInstance :colonMethod ()
2+ interfaceInstance :colonMethod ()
3+ wrapperObj .dotMethod ()
Original file line number Diff line number Diff line change 1+ declare class TestClass {
2+ public colonMethod ( ) : void ;
3+ }
4+
5+ declare interface TestInterface {
6+ colonMethod ( ) : void ;
7+ }
8+
9+ declare var wrapperObj : { dotMethod : ( ) => void } ;
10+
11+ declare const classInstance : TestClass ;
12+ declare const interfaceInstance : TestInterface ;
13+
14+ classInstance . colonMethod ( ) ;
15+ interfaceInstance . colonMethod ( ) ;
16+ wrapperObj . dotMethod ( ) ;
You can’t perform that action at this time.
0 commit comments