mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When importing a property as accessor methods (rather than as a property), we were still importing the type of the accessor methods as if they were Swift getters and setters of a property, which (necessarily) homogenizes the types. The homogenization is unnecessary when importing as accessor methods, because the methods are independent, so just import the accessor method types as if the property did not exist. This is particularly useful for maintaining Swift 3 source compatibility for cases where Swift 4 turns a getter/setter pair into a null_resettable property. Fixes rdar://problem/30075571.
3.0 KiB
3.0 KiB