Since Xcode 7 and Swift 2.0, I get the error above, like in the screenshot shown here:
I got this message when using do-try-catch in a Failable initializer:
public init?() {
do {
...
super.init(superParam: try getParamForSuper())
...
} catch {
...
}
}
The compilation succeeded when moving the try call to it's own local variable:
public init?() {
do {
...
let superParam = try getParamForSuper()
super.init(superParam: superParam)
...
} catch {
...
}
}