2016-08-03 74 views
1

我有以下示例性形式设置:尤里卡:歧义参考构件“+++”

let testForm = Form() 

testForm +++ Section() 
<<< PushRow().cellSetup({ (cell, row) in 
    row.title = "foo" 
}) 
+++ Section() 

testForm +++ Section()导致错误Ambiguous reference to member '+++'线。当我删除cellSetup调用时,错误消失。这里发生了什么事?

回答

2

发现错误。 PushRow是一种通用类型。因此我必须声明它为

PushRow<String>()