研究调查问卷:请告诉我们您使用 Blockly 的体验
开始调查问卷
blockly >IConnectionChecker>doTypeChecks
IConnectionChecker.doTypeChecks() 方法
检查此连接是否与有关值类型系统的其他连接兼容。例如:Square_root("Hello") 不兼容。
Signature:
doTypeChecks(a: Connection, b: Connection): boolean;
参数
参数 |
类型 |
说明 |
a |
连接 |
要比较的连接。 |
b |
连接 |
要进行比较的连接。 |
返回:
布尔值
如果这些连接共享同一类型,则为 true。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["`IConnectionChecker.doTypeChecks()` determines if two connections are compatible based on their value types."],["It takes two `Connection` objects as input and returns `true` if they share a type, otherwise `false`."],["This method ensures type safety, preventing illogical connections like trying to calculate the square root of a string."]]],[]]