Function declares an opaque return type 'some IntentResult', but the return statements in its body do not have matching underlying types 

    func perform() async throws -> some IntentResult & OpensIntent {
        let key = "open"
        let open = UserDefaults.standard.bool(forKey: key)
        UserDefaults.standard.set(!open, forKey: key)
        if open {
            return .result(opensIntent: ActivateTransferIntent())
        } else {
            return .result(opensIntent: DoNothingIntent())
        }
    }