mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
333 B
Swift
12 lines
333 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
// 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}}
|
|
}
|