curiosity-ai / h5

🚀 The next generation C# to JavaScript compiler
https://github.com/curiosity-ai/h5
Apache License 2.0
211 stars 30 forks source link

Out parameter name resolution bug #32

Open theolivenbaum opened 3 years ago

theolivenbaum commented 3 years ago

(src.v || "") should have been (src1.v || "") on the generated code below:

switch (value) {
    case 0: 
        {
            src = { };
            this._paginationManager.GroupResultsBy(function (sh) {
                return Mosaik.Schema.Node.prototype.TryGetSource.call(sh.Node, src) ? src.v : "";
            });
        }
        break;
    case 1: 
        {
            src1 = { };
            this._paginationManager.GroupResultsBy(function (sh) {
                return Mosaik.Schema.Node.prototype.TryGetSource.call(sh.Node, src1) ? (Mosaik.NodeRenderer.GetDisplayName(sh.Node) || "") + " / " + (src.v || "") : Mosaik.NodeRenderer.GetDisplayName(sh.Node);
            });
        }
        break;
}