mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This makes us deduce types like "[Int]" and "[String : Int]" from array/dictionary literals, giving a nicer REPL experience. Swift SVN r19258
10 lines
246 B
Swift
10 lines
246 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 '_ArrayCastKind'}}
|
|
}
|
|
|