mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The operation that finds the best import for a given declaration was treating an overload module as being distinct from its underlying module, even though they both have the same name and are imported together. Teach it to treat those modules as equivalent, so we correctly identify the right import declaration for something that comes from the underlying module. Fixes rdar://129401319.
13 lines
278 B
Swift
13 lines
278 B
Swift
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend -swift-version 6 -I %t %s -emit-sil -o /dev/null -verify -parse-as-library
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
import Foundation
|
|
@preconcurrency import Darwin
|
|
|
|
func mach_task_self() -> mach_port_t {
|
|
return mach_task_self_
|
|
}
|