Failable init problem

Compiling this:

class TestClass {
    
    init?(_ aDontFail: Bool) {
        
        if aDontFail {
            self.someInt = 0
        } else {
            return nil
        }
    }
    
    var someInt: Int
}

fails with Not nullable type requires initialization. I believe it should compile because if init?() fails, the class will never be initialized and the uninitialized property will never be called. It compiles fine in Xcode.

Thanks, logged as bugs://83106

bugs://83106 got closed with status fixed.