mgusmano / sharpkit

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

Is/As on enum types bug #138

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
getTypeName() returns short name only

Original issue reported on code.google.com by DanelK...@gmail.com on 30 May 2012 at 7:15

GoogleCodeExporter commented 8 years ago
Not reproducible

Original comment by DanelK...@gmail.com on 18 Jun 2012 at 9:37

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Here is a reproduction:
[JsType(JsMode.Clr)]
    public enum ClrColors
    {
        Red,
        Green,
        Blue
    }

    [JsType(JsMode.Prototype)]
    public enum PrototypeColors
    {
        Red,
        Green,
        Blue
    }

    [JsType(JsMode.Json)]
    public enum JsonColors
    {
        Red,
        Green,
        Blue
    }

    [JsType(JsMode.Global)]
    public class SharpKitPageScript : jQueryContextBase
    {
        private static void SharpKitPageScript_Load()
        {
            JsContext.debugger();
            var a = ClrColors.Blue is ClrColors; //true - OK
            var b = PrototypeColors.Blue is PrototypeColors; //false - BUG
            var c = JsonColors.Blue is JsonColors; //crash- BUG
        }
    }

Original comment by alon.weiss on 5 Jul 2012 at 8:45

GoogleCodeExporter commented 8 years ago

Original comment by DanelK...@gmail.com on 5 Jul 2012 at 9:03