File tree 1 file changed +24
-0
lines changed 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -module-name Library -plugin-path %swift-host-lib-dir/plugins -disable-availability-checking
3
+ // RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -module-name Library -disable-availability-checking
4
+ // RUN: %FileCheck %s < %t/Library.swiftinterface
5
+
6
+ // REQUIRES: swift_swift_parser
7
+
8
+ import _Observation
9
+
10
+ // CHECK-NOT: @Observable
11
+ // CHECK-NOT: @ObservationIgnored
12
+ // CHECK-NOT: @ObservationTracked
13
+
14
+ @Observable
15
+ public class SomeClass {
16
+ public var field = 3
17
+ @ObservationIgnored public var ignored = 4
18
+ }
19
+
20
+ public func requiresObservable< T: Observable > ( _: T ) { }
21
+
22
+ @inlinable func useObservable( sc: SomeClass ) {
23
+ requiresObservable ( sc)
24
+ }
You can’t perform that action at this time.
0 commit comments