mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Basic Sema support for covariant collection casting.
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user