[swift-users] Method of same name is shadowing a property in Swift 3

Jens Alfke jens at mooseyard.com
Tue Sep 13 20:06:33 CDT 2016

> On Sep 13, 2016, at 4:47 PM, Zhao Xin <owenzx at gmail.com> wrote:
> You said your issue only existed in Swift 3. However, you issue still exists in Xcode 7.3.1, which uses Swift 2.2. I tested your playground code.

Interesting. I think the difference is that prior to Swift 3, the original Objective-C method was translated into Swift differently — I believe it came out as keyAtIndex() — so it didn’t trigger this name collision issue.


More information about the swift-users mailing list