blob: a6039d311bae8cc8e9926390dceb071994b31fd4 [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 '(Int, Int)'}}
}
}