Avatar
Avatar
Iceman
@swift-6.0-dev 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) }
swift60 BOT 8/8/2024 5:58 AM
exit status: 1 with <stdin>:13:5: error: function is unused 11 | continue 12 | } 13 | fooRef(s) | `- error: function is unused 14 | } 15 |