Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Jun 6, 2019

…read-only properties

This fixes an oversight related to ReferenceWritableKeyPath overloads
of the KeyPath dynamic member lookup. Original check filtered out only
WritableKeyPath if the storage is read-only, but it should check for
both WritableKeyPath and ReferenceWritableKeyPath, otherwise program
is going to crash at run time.

Resolves: rdar://problem/51456614

…read-only properties

This fixes an oversight related to `ReferenceWritableKeyPath` overloads
of the KeyPath dynamic member lookup. Original check filtered out only
`WritableKeyPath` if the storage is read-only, but it should check for
both `WritableKeyPath` and `ReferenceWritableKeyPath`, otherwise program
is going to crash at run time.

Resolves: rdar://problem/51456614
@xedin
Copy link
Contributor Author

xedin commented Jun 6, 2019

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jun 6, 2019

@swift-ci please test source compatibility

@swift-ci
Copy link
Contributor

swift-ci commented Jun 6, 2019

Build failed
Swift Test OS X Platform
Git Sha - 329ed30

@xedin
Copy link
Contributor Author

xedin commented Jun 6, 2019

@swift-ci please macOS platform

@xedin
Copy link
Contributor Author

xedin commented Jun 6, 2019

@swift-ci please test macOS platform

@swift-ci
Copy link
Contributor

swift-ci commented Jun 6, 2019

Build failed
Swift Test OS X Platform
Git Sha - 329ed30

@shahmishal
Copy link
Member

@swift-ci please test macOS platform

@xedin xedin merged commit 3b4bf28 into swiftlang:master Jun 6, 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.

3 participants