Files
swift-mirror/test/Concurrency/Inputs/transfernonsendable_preconcurrency_unchecked.swift
Michael Gottesman 9ce43d5a98 [region-isolation] Suppress non-Sendable region isolation errors appropriately when the type is imported by using @preconcurrency import.
This translates the rules for @preconcurrency import from SE-0337 into the
region isolation world. Specifically if a module is compiled without strict
concurrency checking and imported with @preconcurrency:

1. All types from that module that are implicitly non-Sendable have diagnostics
suppressed in swift 5 and swift 6.

2. All types from that module that are explicitly non-Sendable emit warnings in
both swift 5 and swift 6.

rdar://126804052
2024-04-23 22:26:07 -05:00

12 lines
196 B
Swift

public class NonSendableKlass {
public init() {}
}
public class ExplicitlyNonSendableKlass {
public init() {}
}
@available(*, unavailable)
extension ExplicitlyNonSendableKlass: Sendable {}