我尝试使用Cleanse依赖注入器在xcode 9,swift 3.2版上构建我的遗留代码,但static func configure<B: Binder>(binder: Binder)
函数出现以下错误:
对泛型类型'Binder'的引用需要&lt; ...&gt;
中的参数
我尝试了所有的分支和提交。你推荐什么?
答案 0 :(得分:0)
语法似乎已经改变
func configure<B : Binder>(binder binder: B) { // Will fill out contents later }
答案 1 :(得分:0)