Basic Sema support for covariant collection casting.

This commit is contained in:
John McCall
2016-07-13 19:11:48 -07:00
parent 1bb2b7eb4d
commit 4b6a57292f
7 changed files with 136 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ var aa: [[A]] = []
var bb: [[B]] = []
aa = bb // expected-error {{cannot assign value of type '[[B]]' to type '[[A]]'}}
bb = aa // expected-error {{cannot assign value of type '[[A]]' to type '[[B]]'}}
class C {
}