thanhhovn / sharpkit

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

Casting to generic fails #321

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
    [JsType(JsMode.Clr, Filename = "res/test.js")]
    [Serializable]
    public abstract class Class1
    {
        protected P GetProperty<P>()
        {
            return GetProperty().As<P>();
        }

        protected object GetProperty()
        {
            object result = null;
            return result;
        }
    }

Original issue reported on code.google.com by DanelK...@gmail.com on 10 Oct 2013 at 4:36

GoogleCodeExporter commented 8 years ago
This issue is fixed. When the type is generic, casts will now always ommited.

Original comment by sebastia...@gmail.com on 3 Nov 2013 at 2:34

GoogleCodeExporter commented 8 years ago

Original comment by DanelK...@gmail.com on 4 Nov 2013 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by sebastia...@gmail.com on 4 Nov 2013 at 6:16