Avatar
Avatar
omochimetaru
@swift-main @swift-6.0-dev @swift-5.10.1 let f: @MainActor (Int) async -> Void = { @MainActor (a: Int) in print(a) }
swift510 BOT 8/17/2024 2:09 AM
exit status: 1 with <stdin>:1:72: error: cannot find 'a' in scope let f: @MainActor (Int) async -> Void = { @MainActor (a: Int) in print(a) } ^ <stdin>:1:41: error: contextual type for closure argument list expects 1 argument, which cannot be implicitly ignored let f: @MainActor (Int) async -> Void = { @MainActor (a: Int) in print(a) } ^ _ in