mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When a top-level decl is marked with @_originallyDefinedIn, some of its members may also be newly added after the top-level decl has been moved to the current module. For these members, we don't need emit $ld$previous$ symbols for them. rdar://60478650
11 lines
360 B
Swift
11 lines
360 B
Swift
@available(OSX 10.8, iOS 10.2, *)
|
|
@_originallyDefinedIn(module: "ToasterKit", macOS 10.15, iOS 13)
|
|
public func toast() {}
|
|
|
|
@available(OSX 10.8, iOS 10.2, *)
|
|
@_originallyDefinedIn(module: "ToasterKit", macOS 10.15, iOS 13)
|
|
public struct Vehicle {
|
|
public func move() {}
|
|
@available(macOS 10.15, iOS 13, *)
|
|
public func originallyDefinedInCurrentModule() {}
|
|
} |