Files
swift-mirror/test/Sema/impl_throw_objc.swift
Robert Widmann 6ffd6f5f8f [NFC] Strip Unnecessary %s's out of Tests
%target-typecheck-verify-swift already implies the current file being passed to the frontend - these just lead to duplicate input file errors.
2021-09-20 11:50:37 -07:00

12 lines
331 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}}
}