Skip to content

Commit

Permalink
bugfix with ?x rpc param with no type
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Oct 8, 2024
1 parent 476a34b commit e40f708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hxbit/Macros.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2161,7 +2161,7 @@ class Macros {
r.f.access.remove(APublic);
r.f.meta.push( { name : ":noCompletion", pos : p } );

var exprs = [ { expr : EVars([for( a in funArgs ) { name : a.name, type : a.opt ? TPath({ pack : [], name : "Null", params : [TPType(a.type)] }) : a.type, expr : macro cast null } ]), pos : p } ];
var exprs = [ { expr : EVars([for( a in funArgs ) { name : a.name, type : a.opt && a.type != null ? TPath({ pack : [], name : "Null", params : [TPType(a.type)] }) : a.type, expr : macro cast null } ]), pos : p } ];
if( returnVal.call ) {
exprs.push(macro var __v = cast null);
exprs.push(macro if( false ) { function onResult(v) __v = v; $fcall; }); // force typing
Expand Down

0 comments on commit e40f708

Please sign in to comment.