handle trailing return type (decltype) for scope tree