首页> 外国专利> TYPE INFERENCE OF GENERIC TYPE PARAMETERS IN OVERLOADED FUNCTIONS USING TYPE INTERVALS AND INFERENCE DIRECTIONS

TYPE INFERENCE OF GENERIC TYPE PARAMETERS IN OVERLOADED FUNCTIONS USING TYPE INTERVALS AND INFERENCE DIRECTIONS

机译:使用类型间隔和推断方向的重载函数中的一般类型参数的类型推断

摘要

The disclosed embodiments provide a system that facilitates the development and execution of a software program. During operation, the system obtains a type interval for a generic type parameter of an implementation of an overloaded function. Next, the system selects an inference direction for the generic type parameter based on a variance of the generic type parameter, wherein the inference direction is an upward inference direction or a downward inference direction. Finally, the system uses the type interval and the inference direction to perform type inference on the generic type parameter.
机译:公开的实施例提供了一种便于软件程序的开发和执行的系统。在操作过程中,系统获取重载函数实现的通用类型参数的类型间隔。接下来,系统基于通用类型参数的方差为通用类型参数选择推断方向,其中,推断方向是向上推断方向或向下推断方向。最后,系统使用类型间隔和推断方向对通用类型参数进行类型推断。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号