mgusmano / sharpkit

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

Add compilation warning when double named methods (nativeoverloads=true) #180

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Here is issue: I think it should throw atleast raise warning at compile time 
when NativeOverloads=true:

Source:
    [JsType(JsMode.Prototype, Filename = "res/output.js")]
    public class Foo
    {
        public JsNumber foo1(JsNumber a) { return a; }
        public JsNumber foo1() { return 0; }

    }

Result:
Foo = function() {};
Foo.prototype.foo1 = function() { return 0; };
Foo.prototype.foo1 = function(a) { return a;};  //it delete old method, warning 
should raised at compile time

Expected:
Warning should raised at compile time 

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

GoogleCodeExporter commented 8 years ago

Original comment by DanelK...@gmail.com on 17 Sep 2012 at 1:06