Avatar
Avatar
Iceman
@swift-main func f(_: (Int) throws -> Void) {} func g(_: (Int) async throws -> Void) {} func main() { f { throws in } g { async throws in } }
swiftNightly BOT 12/16/2025 7:25 AM
exit status 1 with stderr:<stdin>:5:9: error: expected expression 3 | 4 | func main() { 5 | f { throws in } | `- error: expected expression 6 | g { async throws in } 7 | } <stdin>:5:7: error: contextual type for closure argument list expects 1 argument, which cannot be implicitly ignored 3 | 4 | func main() { 5 | f { throws in } | `- error: contextual type for closure argument list expects 1 argument, which cannot be implicitly ignored 6 | g { async throws in } 7 | }