Avatar
let c = { (i: Int) in print("\(i)") } func f(i: Int) { print("\(i)") } (c as AnyObject) === (c as AnyObject) // false (f as AnyObject) === (f as AnyObject) // false まあそもそもBoxのポインタ比較だと思うんで
2:28 AM
毎回Box生成してるから中身の比較はできて無さそう