Avatar
@swift-6.0.3 struct S { func foo() -> Int { 42 } } let fooRef = S.foo for any in [0, S()] { guard let s = any as? S else { continue } fooRef(s) }