sonygod / sharpkit

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

No build errors for when referencing inaccessible classes / members #176

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
/* Example 1 - String.Empty with no CLR */

 [JsType(JsMode.Global, Filename = "res/Default.js")]
    public class DefaultClient : jQueryContextBase
    {
        static void DefaultClient_Load()
        {
            J(document.body).append("Ready<br/>");
        }
        static void btnTest_click(HtmlDomEventArgs e)
        {
            J(document.body).append(string.Empty);
        }
    }

/* Example 2  - referencing inaccessible class */

public class MyCsInternalClass
    {

    }

    [JsType(JsMode.Global, Filename = "res/Default.js")]
    public class DefaultClient : jQueryContextBase
    {
        static void DefaultClient_Load()
        {
            J(document.body).append("Ready<br/>");
        }
        static MyCsInternalClass btnTest_click(HtmlDomEventArgs e)
        {
            return new MyCsInternalClass();
        }
    }

Original issue reported on code.google.com by giladkhen@gmail.com on 29 Jul 2012 at 7:10