mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
If the replaced symbol goes away in the original library, the replacement key in the replacement descriptor will be null. Handle this by ignoring the replacement entry rather than crashing. rdar://103307821
9 lines
154 B
Swift
9 lines
154 B
Swift
@_weakLinked import LibA
|
|
|
|
extension A {
|
|
@_dynamicReplacement(for: printThis())
|
|
func _replacementForPrintThis() {
|
|
Swift.print("replacement")
|
|
}
|
|
}
|