mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Unlike in Swift, Obj-C allows method overrides to be declared in extensions (categories), even outside of the module that defines the type that is being extended. When MemberImportVisibility is enabled, these overrides must be filtered out to prevent them from hijacking name lookup and causing the compiler to insist that the module that defines the extension be imported. Resolves rdar://145329988.
20 lines
189 B
Plaintext
20 lines
189 B
Plaintext
module Root {
|
|
header "Root.h"
|
|
export *
|
|
}
|
|
|
|
module Branch {
|
|
header "Branch.h"
|
|
export *
|
|
}
|
|
|
|
module Leaf {
|
|
header "Leaf.h"
|
|
export *
|
|
}
|
|
|
|
module Fruit {
|
|
header "Fruit.h"
|
|
export *
|
|
}
|