Files
swift-mirror/test/Concurrency/async_initializer_objc.swift
Michael Gottesman cb46851194 [region-isolation] Rename the experimental feature to RegionBasedIsolation.
This ensures that the pass is called TransferNonSendable but the experimental
feature is RegionBasedIsolation.
2023-10-26 12:01:44 -07:00

17 lines
759 B
Swift

// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=complete -enable-experimental-feature RegionBasedIsolation
// REQUIRES: concurrency
// REQUIRES: objc_interop
// REQUIRES: asserts
import Foundation
class X: NSObject {
// expected-error@+1 {{'async' initializer cannot be represented in Objective-C}}
@objc init(_ i : Int) async { }
}