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-conforming-types.swift
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@
13
13
// RUN: %target-typecheck-verify-swift -I %t \
14
14
// RUN: -swift-version 5 -package-name pkg
15
15
16
-
internalimport BADLibrary // expected-note 14 {{protocol 'BadProto' imported as 'internal' from 'BADLibrary' here}}
16
+
internalimport BADLibrary // expected-note 9 {{protocol 'BadProto' imported as 'internal' from 'BADLibrary' here}}
17
17
// expected-note @-1 2 {{struct 'IntLike' imported as 'internal' from 'BADLibrary' here}}
18
18
// expected-note @-2 2 {{class 'BadClass' imported as 'internal' from 'BADLibrary' here}}
19
19
@@ -30,16 +30,16 @@ public enum TestConformanceEnum: BadProto {} // expected-error {{cannot use prot
30
30
publicstructTestExtensionStruct{}
31
31
extensionTestExtensionStruct:BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
32
32
33
-
packagestructTestConformancePackage:BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
34
-
packagestructTestConformanceCompositionPackage:LocalProto&BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
33
+
packagestructTestConformancePackage:BadProto{} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
34
+
packagestructTestConformanceCompositionPackage:LocalProto&BadProto{} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
35
35
36
36
@usableFromInlinestructTestConformanceUFIPackage:BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
37
37
38
-
packageclassTestConformanceClassPackage:BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
39
-
packageenumTestConformanceEnumPackage:BADLibrary.BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
38
+
packageclassTestConformanceClassPackage:BadProto{} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
39
+
packageenumTestConformanceEnumPackage:BADLibrary.BadProto{} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
40
40
41
41
packagestructTestExtensionStructPackage{}
42
-
extensionTestExtensionStructPackage:BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
42
+
extensionTestExtensionStructPackage:BadProto{} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
43
43
44
44
/// Other inheritance types are covered by the classic access-level check.
extensionTestExtensionStructPackage:BadProto{} // expected-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
42
+
extensionTestExtensionStructPackage:BadProto{} // FIXME-error {{cannot use protocol 'BadProto' in a public or '@usableFromInline' conformance; 'BADLibrary' was not imported publicly}}
43
43
44
44
/// Other inheritance types are covered by the classic access-level check.
0 commit comments