Files
swift-mirror/test/Sema/impl_throw_objc.swift
2020-04-23 09:45:58 -07:00

12 lines
334 B
Swift

// RUN: %target-typecheck-verify-swift %s
// REQUIRES: objc_interop
import Foundation
@objc protocol Tracker {
func track(event: String) throws
}
class ApplicationTracker: NSObject, Tracker {
func track(event: String) {} // expected-error {{satisfying a throwing @objc method with a non-throwing method is not supported}}
}