[SR-12265] Scoped import doesn't work in mixed source module #54693
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.2-dev (LLVM ddeeee2, Swift a32031f55d)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: eb22cd732c99d5e82454b287801dc2b0
Issue Description:
Given a Clang module
Mod
andSubMod
, whereSubMod
is a submodule ofMod
, and has the following declaration:When compiling a same-named Swift module
Mod
that has a scoped import forMod.SubMod.fromSubmodule
, for example:We incorrectly emit an error:
However we should really allow this to compile.
The text was updated successfully, but these errors were encountered: