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/implicit-import-in-inlinable-code.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ import libA
36
36
37
37
@inlinablepublicfunc bar(){
38
38
leta=ImportedType()
39
-
a.implicitlyImportedMethod() // expected-warning {{instance method 'implicitlyImportedMethod()' cannot be used in an '@inlinable' function because 'libB' was implicitly imported; this is an error in Swift 6}}
39
+
a.implicitlyImportedMethod() // expected-warning {{instance method 'implicitlyImportedMethod()' cannot be used in an '@inlinable' function because 'libB' was not imported by this file; this is an error in Swift 6}}
40
40
41
41
// Expected implicit imports are still fine
42
42
a.localModuleMethod()
@@ -48,7 +48,7 @@ import libA
48
48
49
49
@inlinablepublicfunc bar(){
50
50
leta=ImportedType()
51
-
a.implicitlyImportedMethod() // expected-error {{instance method 'implicitlyImportedMethod()' cannot be used in an '@inlinable' function because 'libB' was implicitly imported}}
51
+
a.implicitlyImportedMethod() // expected-error {{instance method 'implicitlyImportedMethod()' cannot be used in an '@inlinable' function because 'libB' was not imported by this file}}
52
52
53
53
// Expected implicit imports are still fine
54
54
a.localModuleMethod()
@@ -59,7 +59,7 @@ import libA
59
59
60
60
@inlinablepublicfunc bar(){
61
61
leta=ImportedType()
62
-
a.implicitlyImportedMethod() // expected-error {{instance method 'implicitlyImportedMethod()' cannot be used in an '@inlinable' function because 'libB' was implicitly imported}}
62
+
a.implicitlyImportedMethod() // expected-error {{instance method 'implicitlyImportedMethod()' cannot be used in an '@inlinable' function because 'libB' was not imported by this file}}
0 commit comments