Avatar
Avatar
ジュニア
@swift-5.10.1 @swift-6.0.3 -swift-version 6 struct Foo: Sendable { var value: Any } struct Bar: Sendable { var value: any Sendable } (edited)
exit status: 1 with <stdin>:2:9: error: stored property 'value' of 'Sendable'-conforming struct 'Foo' has non-sendable type 'Any' 1 | struct Foo: Sendable { 2 | var value: Any | `- error: stored property 'value' of 'Sendable'-conforming struct 'Foo' has non-sendable type 'Any' 3 | } 4 | struct Bar: Sendable { (edited)