[SR-4654] Struct extension implicitly imported from framework #47231
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
duplicate
Resolution: Duplicates another issue
extension
Feature → declarations: `extension` declarations
multiple files
Flag: An issue whose reproduction requires multiple files
multiple modules
Flag: An issue whose reproduction requires multiple modules
name lookup
Area → compiler → type checker: Name lookup
swift 5.8
unexpected behavior
Bug: Unexpected behavior or incorrect output
Environment
Apple Swift version 3.1 (swiftlang-802.0.51 clang-802.0.41)
Additional Detail from JIRA
md5: 5abb5d6469bc94cf525cf75ec7dd1249
duplicates:
Issue Description:
Struct extension from framework is accessible in file even if framework is not imported.
Example
Module A:
File1 from app:
import A // do other stuff
File2 from app:
Expected behavior
Struct extensions should not be available without explicit framework import, like classes.
In general cases it is not a big deal, but it becomes a problem when you have module
B
with same extension, because in that case compilation fails withand you can't solve this issue by importing only one framework.
The text was updated successfully, but these errors were encountered: