IDE: Visual Studio X/Fire
Version: 10.0.0.2433 (develop)_
Target (If relevant): OSX
Description:
Swift allows throwing @autoclosure
s, but silver claims that is an attempt to add a parameter.
Expected Behavior:
Compiles.
Actual Behavior:
see inline.
Steps:
extension Int {
public static func foo (rhs: @autoclosure () throws -> Int) // E517 "@autoclosure" can only be applied to delegate types without parameters
rethrows -> Int {
return try rhs()
}
}