Swift “ambiguous use of operator '>'”
http://stackoverflow.com/questions/25458548/swift-ambiguous-use-of-operator
I have just downloaded Xcode6-beta6. I am getting compiler error "ambiguous use of operator '>'" for following codes
It was working before in Xcode6-beta5. The code is from apple swift documentationhttps://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Closures.html#//apple_ref/doc/uid/TP40014097-CH11-XID_152 Any ideas? |
|||||||||||||||||
|
I had the same issue also with
and
Apparently XCode can't correctly infer the correct type "String" for the parameters, thus creating an ambiguity on the operator. My solution has been to explicitly declare the type at least one of them which also makes the code more readable. Like in:
|
||||
This seems to be a bug in the Foundation framework's bridging. It declares overrides of
|
|||
Your Answer
最新文章
- SQL Server删除distribution数据库
- 关于subGradent descent和Proximal gradient descent的迭代速度
- 快速入门系列--MVC--06视图
- Sublime Text插件:HTML+CSS+JAVASCRIPT+JSON快速格式化[转]
- nRF51822之模拟IIC
- JQ添加移除css样式
- stm32 IAP + APP ==>;双剑合一
- (转)CentOS 6.5下Redis安装详细步骤
- Leetcode:find_minimum_in_rotated_sorted_array
- 数独 (dfs)
- 分布式进阶(三)Ubuntu 14.04 之JDK安装
- Spring Boot应用总结更新
- C#泛型创建实例
- vscode 常用插件
- dfs常见的配置文件中的value与description(重要)
- 论EFMS模拟量部分采集电路的修改
- 手把手教你开发chrome扩展
- 关于Mybatis的Example(and ,or )应用
- Hive HQL基本操作
- threejs三角形Geometry的顶点时针顺序会导致三角形看不见
热门文章
- 讨伐Cucumber行为驱动
- 第一篇 Charles的配置及相关使用
- Python之tornado框架原理
- ubuntu 14.04 安装opencv 3.0 测试
- 简明Python3教程 1.介绍
- PokeCats开发者日志(六)
- 【考试记录】4.8 Path (网络流 —— 劲题)
- 洛谷 P2218 [HAOI2007]覆盖问题 解题报告
- 理解JavaScript的function
- Codeforces Round #348 (VK Cup 2016 Round 2, Div. 2 Edition) D