Files
swift-mirror/test/stdlib/ArrayDiagnostics.swift
Doug Gregor 39bcf3bd85 Re-sugar the types we deduce for type variables.
This makes us deduce types like "[Int]" and "[String : Int]" from
array/dictionary literals, giving a nicer REPL experience.


Swift SVN r19258
2014-06-26 22:04:47 +00:00

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'}}
}