Skip to content

Commit ea46fc2

Browse files
phauslertreastrain
authored andcommitted
Cherry-pick "Move the tests for package scopes to the module interface tests" 4e274ce
1 parent 5503b9c commit ea46fc2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
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

0 commit comments

Comments
 (0)