Generic methods in UnityScript

is there a feature in UnityScript that able us to create generic methods?

something like:

function DoSomething<T>() : T  {
   return GameObject.Instantiate<T>(...);
}

I don’t think that’s possible in UnityScript. AFAIK this example wouldn’t even work in C# since Instatiate’s generic parameter has a constraint to UnityEngine.Object so you can’t use an unconstrainted parameter. Maybe there’s some magic secret syntax which allows you to sepecify a constraint in UnityScript, but i guess it’s another thing which isn’t possible in UnityScript like: inheriting from additional interfaces, declaring interfaces, declaring indexer, …

maybe the example with Instantiate wasn’t good, I just wanted to ilustrate a generic use.
is there any other possible way to work with generics in unityscript?