mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We inadvertantly allowed this in the past, so continue to do so when compiling in Swift 3/4 mode to avoid suddenly breaking existing code. The diagnostic here is pretty bad, and I've opened issues for that as well as providing some kind of deprecation warning for this so that even under Swift 3/4 mode we alert users that this is unsupported. rdar://problem/39802797
4 lines
41 B
Swift
4 lines
41 B
Swift
class C {
|
|
fileprivate(set) var i = 0
|
|
}
|