Avatar
Avatar
Iceman
@swift-6.0.3 -swift-version 6 struct S { func f(_: @escaping @Sendable () -> ()) {} func f(_: @escaping @MainActor () -> ()) {} } (edited)
exit status: 1 with <stdin>:3:9: error: invalid redeclaration of 'f' 1 | struct S { 2 | func f(_: @escaping @Sendable () -> ()) {} 3 | func f(_: @escaping @MainActor () -> ()) {} | `- error: invalid redeclaration of 'f' 4 | } 5 | (edited)