Commit 4c84ee8
committed
Don't lock in failed callee type typings
When we reach out to get the callee type, we might get an error, e.g.
if the callee is overloaded. Example:
```
ch => sb.append(ch)
```
Here we might want to call calleeType to find the argument type
of `sb.append` in order to use this type as the type of `ch`. But
this fails since `append` is overloaded on StringBuffer.
Prevously this did not matter since we called calleeType only as a last
effort, so if it failed the whole typing failed. But with the changes
forseen for fiing #8111 we need to be able to compute calleeType and
retract it if it does not work.1 parent 5e59f87 commit 4c84ee8
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| 1016 | + | |
1016 | 1017 | | |
1017 | 1018 | | |
1018 | 1019 | | |
1019 | | - | |
1020 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
1021 | 1026 | | |
1022 | 1027 | | |
1023 | 1028 | | |
| |||
0 commit comments