Skip to content

Conversation

@aschwaighofer
Copy link
Contributor

The observer in a dynamic replacement of variables with a observer will
provide the dynamic replacement for the original.

var original : Int = 0 {
didSet {
print("original")
}
}

@_dynamicReplacement(for: original)
var replacement : Int {
didSet {
print("replacement")
}
}

rdar://48518788

The observer in a dynamic replacement of variables with a observer will
provide the dynamic replacement for the original.

var original : Int = 0 {
  didSet {
    print("original")
  }
}

@_dynamicReplacement(for: original)
var replacement : Int {
  didSet {
    print("replacement")
  }
}

rdar://48518788
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test

@aschwaighofer aschwaighofer merged commit 06742e0 into swiftlang:swift-5.1-branch Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant