Files
swift-mirror/test/stdlib/ArrayDiagnostics.swift
2019-09-13 22:35:52 -07:00

9 lines
270 B
Swift

// RUN: %target-typecheck-verify-swift
class NotEquatable {}
func test_ArrayOfNotEquatableIsNotEquatable() {
var a = [ NotEquatable(), NotEquatable() ]
if a == a {} // expected-error {{operator function '==' requires that 'NotEquatable' conform to 'Equatable'}}
}