mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In most cases this means adding @public to things that get serialized; in a few cases it means using a modern public stdlib API instead of a legacy thing I was trying to keep @internal. Swift SVN r19350
10 lines
249 B
Swift
10 lines
249 B
Swift
// RUN: %swift %s -parse -verify
|
|
|
|
class NotEquatable {}
|
|
|
|
func test_ArrayOfNotEquatableIsNotEquatable() {
|
|
var a = [ NotEquatable(), NotEquatable() ]
|
|
if a == a {} // expected-error {{'[NotEquatable]' is not convertible to 'MirrorDisposition'}}
|
|
}
|
|
|