File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
test/Concurrency/attr_execution Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ // RUN: %empty-directory(%t/src)
2+ // RUN: split-file %s %t/src
3+
4+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module %t/src/main.swift \
5+ // RUN: -import-objc-header %t/src/Test.h \
6+ // RUN: -swift-version 5 \
7+ // RUN: -enable-upcoming-feature NonisolatedNonsendingByDefault \
8+ // RUN: -module-name main -I %t -verify -verify-ignore-unrelated \
9+ // RUN: -parse-as-library -o %t/main.o
10+
11+ // REQUIRES: objc_interop
12+ // REQUIRES: swift_feature_NonisolatedNonsendingByDefault
13+
14+ //--- Test.h
15+ @import Foundation;
16+
17+ @protocol InterfaceT
18+ @end
19+
20+ @interface Base : NSObject
21+ - ( void) prepareWithP: ( nullable id< InterfaceT> ) p complet ionHandler : ( void ( ^ _Nonnull ) ( NSError * _Nullable ) ) complet ionHandler;
22+ @end
23+
24+ //--- main.swift
25+ import Foundation
26+
27+ class Derived : Base {
28+ nonisolated ( nonsending) override public func prepare( withP: ( any InterfaceT ) ? ) async throws { }
29+ }
30+
You can’t perform that action at this time.
0 commit comments