Commit 12287d7
Inconsistent inheritance check follow ups (#1298)
Summary:
This PR is a series of minor diffs building up to the correct handling of multiple inheritance checks for methods, following up from #1196.
Main changes:
- [Skip multiple inheritance check for fields that are overridden](6fccf4a): this diff prevents repeated error reporting when a field gets overridden -- in those cases we don't report inconsistent multiple inheritance
- [Skip multiple inheritance checks for "special" fields](b290fd1): this diff skips checks for multiple inheritances for some special fields like constructors.
- Cherry picking fixes for some problematic function types in stdlib in vendored typeshed
Next steps:
We're close to handle multiple inheritance checks for methods. We still have some errors on stdlib due to handling of type variables (#1196 (comment) item 2), which I consider as a blocker.
Pull Request resolved: #1298
Reviewed By: kinto0
Differential Revision: D85053799
Pulled By: yangdanny97
fbshipit-source-id: 2e6c22916886dc4c760931cf49522a057c7b42aa1 parent 1946d0e commit 12287d7
2 files changed
+55
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1780 | 1780 | | |
1781 | 1781 | | |
1782 | 1782 | | |
1783 | | - | |
1784 | | - | |
1785 | | - | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
| 1783 | + | |
1796 | 1784 | | |
1797 | 1785 | | |
1798 | 1786 | | |
1799 | 1787 | | |
1800 | 1788 | | |
1801 | | - | |
| 1789 | + | |
1802 | 1790 | | |
1803 | 1791 | | |
1804 | 1792 | | |
1805 | 1793 | | |
1806 | | - | |
| 1794 | + | |
1807 | 1795 | | |
1808 | 1796 | | |
1809 | 1797 | | |
| |||
1815 | 1803 | | |
1816 | 1804 | | |
1817 | 1805 | | |
1818 | | - | |
| 1806 | + | |
1819 | 1807 | | |
1820 | 1808 | | |
1821 | | - | |
| 1809 | + | |
1822 | 1810 | | |
1823 | | - | |
| 1811 | + | |
1824 | 1812 | | |
1825 | 1813 | | |
1826 | 1814 | | |
1827 | 1815 | | |
1828 | | - | |
| 1816 | + | |
1829 | 1817 | | |
1830 | 1818 | | |
1831 | 1819 | | |
1832 | 1820 | | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
| 1843 | + | |
| 1844 | + | |
| 1845 | + | |
1833 | 1846 | | |
1834 | 1847 | | |
1835 | 1848 | | |
| |||
1995 | 2008 | | |
1996 | 2009 | | |
1997 | 2010 | | |
| 2011 | + | |
1998 | 2012 | | |
1999 | 2013 | | |
2000 | 2014 | | |
2001 | 2015 | | |
2002 | | - | |
2003 | | - | |
| 2016 | + | |
| 2017 | + | |
2004 | 2018 | | |
2005 | 2019 | | |
2006 | 2020 | | |
2007 | 2021 | | |
2008 | 2022 | | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
2009 | 2029 | | |
2010 | 2030 | | |
2011 | 2031 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
0 commit comments