mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #76558 from gottesmm/pr-39b63781333d46b16f086a7c192efc67b26255db
[concurrency] Behind the flag UnspecifiedMeansMainActorIsolated, try inferring by default main actor isolation instead of nonisolated for unspecified.
This commit is contained in:
@@ -411,6 +411,9 @@ EXPERIMENTAL_FEATURE(WarnUnsafe, true)
|
||||
// Enable values in generic signatures, e.g. <let N: Int>
|
||||
EXPERIMENTAL_FEATURE(ValueGenerics, true)
|
||||
|
||||
// When a parameter has unspecified isolation, infer it as main actor isolated.
|
||||
EXPERIMENTAL_FEATURE(UnspecifiedMeansMainActorIsolated, false)
|
||||
|
||||
#undef EXPERIMENTAL_FEATURE_EXCLUDED_FROM_MODULE_INTERFACE
|
||||
#undef EXPERIMENTAL_FEATURE
|
||||
#undef UPCOMING_FEATURE
|
||||
|
||||
Reference in New Issue
Block a user