Files
swift-mirror/test/IDE/Inputs/FooOverlay.swift
Ben Langmuir cfff55e989 [InterfaceGen] Fix deserializing submodule ImportDecls
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
2016-02-08 17:00:23 -08:00

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)
}