mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10 lines
262 B
Swift
10 lines
262 B
Swift
// RUN: %swift %s -parse -verify
|
|
|
|
class NotEquatable {}
|
|
|
|
func test_ArrayOfNotEquatableIsNotEquatable() {
|
|
var a = [ NotEquatable(), NotEquatable() ]
|
|
if a == a {} // expected-error {{could not find an overload for '==' that accepts the supplied arguments}}
|
|
}
|
|
|