mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes a compiler bug that got exposed by f11abac652.
If a C++ type is declared in a nested Clang submodule, Swift was emitting errors that look like:
```
Type alias 'string' is not available due to missing import of defining module 'fwd’
```
rdar://146899125
20 lines
317 B
Plaintext
20 lines
317 B
Plaintext
module Namespaces {
|
|
header "namespace.h"
|
|
requires cplusplus
|
|
}
|
|
|
|
module TopLevelModule {
|
|
module SubModule {
|
|
module DeepSubModule {
|
|
header "deep-submodule.h"
|
|
export *
|
|
}
|
|
module AnotherDeepSubModule {
|
|
header "another-deep-submodule.h"
|
|
export *
|
|
}
|
|
export *
|
|
}
|
|
export *
|
|
}
|