Skip to content

Commit 4e274ce

Browse files
committed
Move the tests for package scopes to the module interface tests
1 parent 217dc37 commit 4e274ce

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

test/ModuleInterface/Observable.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -module-name Library -plugin-path %swift-plugin-dir -disable-availability-checking
3-
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -module-name Library -disable-availability-checking
2+
// RUN: %target-swift-emit-module-interface(%t/Library.swiftinterface) %s -package-name Library -module-name Library -plugin-path %swift-plugin-dir -disable-availability-checking
3+
// RUN: %target-swift-typecheck-module-from-interface(%t/Library.swiftinterface) -package-name Library -module-name Library -disable-availability-checking
44
// RUN: %FileCheck %s < %t/Library.swiftinterface
55

66
// REQUIRES: swift_swift_parser
@@ -15,6 +15,7 @@ import Observation
1515
@Observable
1616
public class SomeClass {
1717
public var field = 3
18+
package var test = 4
1819
@ObservationIgnored public var ignored = 4
1920
}
2021

test/stdlib/Observation/Observable.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ public class PublicContainsWeak {
3131
public weak var obj: AnyObject? = nil
3232
}
3333

34-
@Observable
35-
class ContainsPackage {
36-
package var contents: Int = 0
37-
}
38-
3934
@Observable
4035
class ContainsUnowned {
4136
unowned var obj: AnyObject? = nil

0 commit comments

Comments
 (0)