polytronicgr / sharpkit

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

Support customizing jsmode for generic type parameters #358

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
//Get metadata for T via JsObject / support specifying JsTypeAttribute for T
class MyList<T> where T: JsObject
{
  void foo() { return new T(); }   // return {} / return [] / return new ??
}

Original issue reported on code.google.com by DanelK...@gmail.com on 2 Jun 2014 at 9:11

GoogleCodeExporter commented 8 years ago
I think the last case, "return new ??" is already working when 
IgnoreGenericTypeArguments=false.

Original comment by Hultqvis...@gmail.com on 3 Jun 2014 at 6:29

GoogleCodeExporter commented 8 years ago
:-)

Original comment by DanelK...@gmail.com on 4 Jun 2014 at 9:58