blob: dbf0d8bc7b4b0a3e6ba2153d037f9d49a317bc9e [file] [log] [blame]
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify %s
// REQUIRES: objc_interop
import Foundation
struct S {
init<T: NSNumber>(_ num: T) {
self.init(num != 0) // expected-error {{binary operator '!=' cannot be applied to operands of type 'T' and 'Int'}}
// expected-note@-1 {{expected an argument list of type '(Self, Self)'}}
}
}