Commit 0248250
committed
[Property Wrappers] Fix a diagnostic crash when a parameter has a wrapped value
mismatch.
If there's an error in property wrapper application, the backing property
wrapper type request will return a null type, which would cause the compiler
to crash because most error recovery code expects ErrorType. If the wrapper
application has an error, use the interface type of the parameter instead.1 parent 9df8944 commit 0248250
File tree
3 files changed
+23
-7
lines changed- lib
- AST
- Sema
- test/Sema
3 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6354 | 6354 | | |
6355 | 6355 | | |
6356 | 6356 | | |
| 6357 | + | |
| 6358 | + | |
6357 | 6359 | | |
6358 | | - | |
6359 | | - | |
6360 | | - | |
| 6360 | + | |
| 6361 | + | |
| 6362 | + | |
6361 | 6363 | | |
6362 | 6364 | | |
6363 | 6365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3034 | 3034 | | |
3035 | 3035 | | |
3036 | 3036 | | |
3037 | | - | |
3038 | | - | |
3039 | | - | |
3040 | | - | |
| 3037 | + | |
| 3038 | + | |
| 3039 | + | |
| 3040 | + | |
| 3041 | + | |
| 3042 | + | |
3041 | 3043 | | |
3042 | 3044 | | |
3043 | 3045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
0 commit comments