fjgandrade / sharpkit

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

enum of nested class does not generate #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
using SharpKit.JavaScript;

[JsType(JsMode.Prototype)]
public class Class1
{
    [JsType(JsMode.Prototype)]
    public class MyClass
    {
        [JsEnum(ValuesAsNames = true)]
        public enum Type
        {
            type,
            type2,
            type3,
        }
    }

    public void foo()
    {
        var a = MyClass.Type.type; //**ERROR
    }
}

JS:
/*Generated by SharpKit 5 v5.00.0000*/
var Class1 = function ()
{
};
Class1.prototype.foo = function ()
{
    var a = Class1.MyClass.Type.type;
};
if (typeof(Class1) == "undefined")
    var Class1 = {};
Class1.MyClass = function ()
{
};

Original issue reported on code.google.com by Madnik7@gmail.com on 31 Oct 2012 at 9:13

GoogleCodeExporter commented 9 years ago
It seems, the issue does not exists anymore.

Original comment by sebastia...@gmail.com on 12 Jan 2013 at 2:50