curiosity-ai/h5

Local functions No build

2505817596 opened this issue · 1 comments

Reproduce the code:

static void Main(string[] args) { if (true) { void Test() { } if(true) { void Test1() { } Test1(); } } }

results:
H5.define("FightCore.Program", { main: function Main (args) { if (true) { var Test = null; Test = function () { }; if (true) { [UnknownIdentifierResolveResult Test1](); } } } });

@2505817596 Think I finally found a fix for this with 16c6677, let me know if you still see the issue with the new release.