Eureka:对成员 '+++' 的引用不明确

Eureka: Ambiguous reference to member '+++'

我有以下示例表单设置:

let testForm = Form()

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

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

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

PushRow<String>()