Commit f836188
committed
[Type checker] Handle explicit conversion of bridged generic types.
The type checker had some logic for performing specific checking for
explicit bridging casts of generic types based on knowledge of
Array/Dictionary/Set, but pretended no other bridged generic types
existed. That's incorrect now; simply require them to match exactly.
Fixes rdar://problem/27539951.
(cherry picked from commit 6b91c5b)1 parent 8db7b08 commit f836188
File tree
2 files changed
+17
-2
lines changed- lib/Sema
- test/ClangModules
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4176 | 4176 | | |
4177 | 4177 | | |
4178 | 4178 | | |
4179 | | - | |
| 4179 | + | |
4180 | 4180 | | |
4181 | 4181 | | |
4182 | 4182 | | |
| |||
4219 | 4219 | | |
4220 | 4220 | | |
4221 | 4221 | | |
4222 | | - | |
| 4222 | + | |
4223 | 4223 | | |
4224 | 4224 | | |
4225 | 4225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
0 commit comments