Avatar
@swift-6.0.3 -swift-version 6 func foo(_ task: () async throws -> ()) async throws { } func resetDatabase() async throws {} enum MyUtils { static func resetDatabase() async throws {} } @MainActor struct S { func f() async throws { try await foo(MyUtils.resetDatabase) try await foo(resetDatabase) } }