Avatar
Avatar
omochimetaru
@swift-5.10.1 @swift-6.0.3 @swift-6.1-dev -swift-version 6 func withSpan<T>( isolation: isolated (any Actor)? = #isolation, _ operation: () async throws -> T ) async rethrows -> T { try await operation() }
exit status: 1 with <unknown>:0: error: invalid value '6' in '-swift-version 6' <unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5' <stdin>:2:16: error: 'isolated' parameter has non-actor type '(any Actor)?' isolation: isolated (any Actor)? = #isolation, ^ <stdin>:2:40: error: non-built-in macro cannot be used as default argument isolation: isolated (any Actor)? = #isolation, ^