mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When compiling with Swift 6 mode, but using a serialized module that is using Swift 5 that contains a struct with global-actor isolation on its stored property, we should not emit an error for that stored property. Only a warning was emitted when compiling that module, but the checks here were treating that module as being type-checked again under a Swift 6 world.
7 lines
94 B
Swift
7 lines
94 B
Swift
|
|
public struct MySerializedStruct {
|
|
@MainActor public var counter = 0
|
|
|
|
public init() {}
|
|
}
|