mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
A parse-only option is needed for parse performance tracking and the current option also includes semantic analysis.
12 lines
404 B
Swift
12 lines
404 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
class NotEquatable {}
|
|
|
|
func test_ArrayOfNotEquatableIsNotEquatable() {
|
|
var a = [ NotEquatable(), NotEquatable() ]
|
|
// FIXME: This is an awful error.
|
|
if a == a {} // expected-error {{binary operator '==' cannot be applied to two '[NotEquatable]' operands}}
|
|
// expected-note @-1 {{overloads for '==' exist with these partially matching parameter lists: }}
|
|
}
|
|
|