You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Sema/access-level-import-exportability.swift
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -760,9 +760,13 @@ public struct PublicVars {
760
760
761
761
publicvark=PublicImportType()
762
762
publicvarl=PackageImportType() // expected-error {{property cannot be declared public because its type 'PackageImportType' uses a package type}}
763
+
// expected-note @-1 {{is imported by this file as}}
763
764
publicvarm=InternalImportType() // expected-error {{property cannot be declared public because its type 'InternalImportType' uses an internal type}}
765
+
// expected-note @-1 {{is imported by this file as}}
764
766
publicvarn=FileprivateImportType() // expected-error {{property cannot be declared public because its type 'FileprivateImportType' uses a fileprivate type}}
767
+
// expected-note @-1 {{is imported by this file as}}
765
768
publicvaro=PrivateImportType() // expected-error {{property cannot be declared public because its type 'PrivateImportType' uses a private type}}
769
+
// expected-note @-1 {{is imported by this file as}}
766
770
}
767
771
768
772
packagestructPackageVars{
@@ -792,8 +796,11 @@ package struct PackageVars {
792
796
packagevark=PublicImportType()
793
797
packagevarl=PackageImportType()
794
798
packagevarm=InternalImportType() // expected-error {{property cannot be declared package because its type 'InternalImportType' uses an internal type}}
799
+
// expected-note @-1 {{is imported by this file as}}
795
800
packagevarn=FileprivateImportType() // expected-error {{property cannot be declared package because its type 'FileprivateImportType' uses a fileprivate type}}
801
+
// expected-note @-1 {{is imported by this file as}}
796
802
packagevaro=PrivateImportType() // expected-error {{property cannot be declared package because its type 'PrivateImportType' uses a private type}}
803
+
// expected-note @-1 {{is imported by this file as}}
internalvarn=FileprivateImportType() // expected-error {{property cannot be declared internal because its type 'FileprivateImportType' uses a fileprivate type}}
832
+
// expected-note @-1 {{is imported by this file as}}
825
833
internalvaro=PrivateImportType() // expected-error {{property cannot be declared internal because its type 'PrivateImportType' uses a private type}}
834
+
// expected-note @-1 {{is imported by this file as}}
0 commit comments