mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Default to not chain dynamic replacements: Only one replacement and the original implementation are active.
9 lines
112 B
Swift
9 lines
112 B
Swift
import A
|
|
|
|
extension Impl {
|
|
@_dynamicReplacement(for: foo())
|
|
func repl() -> Int {
|
|
return foo() + 1
|
|
}
|
|
}
|