sonygod / sharpkit

Automatically exported from code.google.com/p/sharpkit
0 stars 0 forks source link

Overload suffix is added even if overloads are not exported #179

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 [JsType(JsMode.Prototype, Filename = "res/output.js", NativeOverloads=false)]
    public class Foo
    {
        [JsMethod(Export = false)]
        public JsNumber foo1() { return 0; }
        public JsNumber foo1(JsNumber a) { return a; }
    }

Output:
Foo = function() {};
Foo.prototype.foo1$$Number = function(a) { return a; }; //$$Number is redundant

Expect:
$$Number is redundant because no other method exported. The issue still exists 
when the other method attribute already renamed with 
[JsMethod(Name="something")].
I expect generated output always use NativeOverloads when other overload not 
exported or already renamed.

Original issue reported on code.google.com by DanelK...@gmail.com on 4 Aug 2012 at 6:43