Has the isolation of override functions been changed with the latest beta release? The following two code snippets produce 1 failure to compile and 2 warnings. Earlier beta's had no issue with either snippet:
import Foundation
import UIKit
@MainActor class TestObject: NSObject {
let testView = UIView(frame: .zero)
private func doSomething() {
}
override init() {
// [ERROR] Property 'self.testView' not initialised at super.init call
super.init()
// [WARNING] Call to main actor-isolated instance method 'doSomething()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
doSomething()
}
}
and
import Foundation
import UIKit
class TestListCell: UICollectionViewCell {
private func doSomething() {
}
override func awakeFromNib() {
// [WARNING] Call to main actor-isolated instance method 'doSomething()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
doSomething()
}
}
(Compiling with complete concurrency checking but with the swift language mode set to 5)