mgusmano / sharpkit

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

Undetected name collision using JsMode.Global #271

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
[JsType(JsMode.Global)]
class A{
    static void Test()
    {
        B.Test();
    }
}
[JsType(JsMode.Global)]
class B{
    public static void Test()
    {

    }
}

What is the expected output? What do you see instead?
Expected compiling error, or possibly renamed B.Test to not collide with A.Test.
Instead I got no errors until I ran the code that resulted in a stack overflow 
since A.Test was calling itself(Test) rather than B.Test.

What version of the product are you using? On what operating system?
5.00.3000

Please provide any additional information below.
Using [JsType(JsMode.Prototype)] prevents this case.

Original issue reported on code.google.com by Hultqvis...@gmail.com on 8 Jan 2013 at 10:55