mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Use the isScoped() bit to distinguish scoped imports from submodule imports (both of which are split by null bytes in the string) so that we don't try to lookup a submodule name as if it were a decl (leading to assertion failures when it wasn't found). This fixes interface generation of swift modules that import clang submodules. rdar://problem/24534122
9 lines
325 B
Swift
9 lines
325 B
Swift
@_exported import Foo // not scoped, top-level module
|
|
@_exported import Foo.FooSub // not scoped, submodule
|
|
@_exported import func Foo.FooSub.fooSubFunc1 // scoped, from submodule
|
|
@_exported import struct Foo.FooStruct1 // scoped, from top-level module
|
|
|
|
func fooSubOverlayFunc1(x: Int32) -> Int32 {
|
|
return fooSubFunc1(x)
|
|
}
|