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
When a file does not reference any declarations in a given module, but that module does provide a conformance that is required in the file, the import removal can result in a build failure. For example:
A/a.swift:
classFoo{}
B/b.swift:
import A
extensionFoo:SomeProtocol{varsomeProperty:Int}
C/c.swift:
import B
func someMethod(_ thing:SomeProtocol){}
D/d.swift:
import A
import B // unused, yet required because it conforms Foo to SomeProtocol
import C
someMethod(Foo())
The text was updated successfully, but these errors were encountered:
When a file does not reference any declarations in a given module, but that module does provide a conformance that is required in the file, the import removal can result in a build failure. For example:
A/a.swift:
B/b.swift:
C/c.swift:
D/d.swift:
The text was updated successfully, but these errors were encountered: