Cocos-C关于泛型的问题

FindCtrl<T>(path: string) :cc.Widget
{
    return cc.find(path).getComponent<T>();
}

大神们 请问这种问题出在什么地方