Commit 32ebabc
Implement multiple inheritance checks for instance methods (#1452)
Summary:
Follow up from #1196. Closes #943.
When getting the field type from the parent field, we now check for instance method types first before using the raw types.
When using the raw types, the type parameters are not initialised, hence causing issues with functions that use type variables during subtyping checks. This diff adds a regression test for these cases.
Pull Request resolved: #1452
Reviewed By: stroxler
Differential Revision: D86374052
Pulled By: yangdanny97
fbshipit-source-id: 32bb6f9cdfcedcde0a6c310804ddbb6df4be18bb1 parent 8076f31 commit 32ebabc
2 files changed
+23
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2185 | 2185 | | |
2186 | 2186 | | |
2187 | 2187 | | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2188 | 2196 | | |
2189 | 2197 | | |
2190 | 2198 | | |
2191 | 2199 | | |
2192 | 2200 | | |
2193 | 2201 | | |
2194 | 2202 | | |
2195 | | - | |
| 2203 | + | |
2196 | 2204 | | |
2197 | 2205 | | |
2198 | 2206 | | |
| |||
2206 | 2214 | | |
2207 | 2215 | | |
2208 | 2216 | | |
2209 | | - | |
2210 | | - | |
2211 | | - | |
2212 | | - | |
2213 | | - | |
2214 | | - | |
2215 | | - | |
2216 | | - | |
2217 | | - | |
2218 | | - | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
2222 | 2217 | | |
2223 | 2218 | | |
2224 | 2219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | 315 | | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
320 | 319 | | |
321 | 320 | | |
322 | 321 | | |
323 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
324 | 336 | | |
325 | 337 | | |
326 | 338 | | |
| |||
0 commit comments