Files
swift-mirror/test/Concurrency/Inputs/other_global_actor_inference.swift
Holly Borla 84eaeb766f [Concurrency] Diagnose non-Sendable 'self' arguments crossing actor isolation
boundaries in member reference expressions.
2023-08-22 21:28:33 -07:00

16 lines
294 B
Swift

// dynamically_replaceable
@MainActor
public dynamic func dynamicOnMainActor() { }
// property wrapper + main actor
@propertyWrapper
public struct IntWrapper: Sendable {
public init(wrappedValue: Int) {
self.wrappedValue = wrappedValue
}
@MainActor public var wrappedValue: Int
}