Commit 46ff151
authored
- Fix a typo in `Applications#compare#isAsGood#isGiven` which always
used `alt1`, to determine if the alternatives passed to `isAsGoodValueType`
were givens.
- Update `isAsGoodValueType` to not prefer givens over extensions, by
negating the `isGiven` parameter, letting extensions and givens now have
the same priority level as far as that rule is concerned.
- Modify `given`/`implicit` definitions from the `Namer` and the
`PPrint` community-project to resolve ambiguity errors introduced by the changes.
File tree
6 files changed
+45
-13
lines changed- community-build/community-projects
- compiler/src/dotty/tools/dotc/typer
- tests/pos
6 files changed
+45
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1830 | 1830 | | |
1831 | 1831 | | |
1832 | 1832 | | |
1833 | | - | |
1834 | | - | |
1835 | 1833 | | |
1836 | | - | |
| 1834 | + | |
1837 | 1835 | | |
1838 | 1836 | | |
1839 | 1837 | | |
| |||
1851 | 1849 | | |
1852 | 1850 | | |
1853 | 1851 | | |
1854 | | - | |
| 1852 | + | |
1855 | 1853 | | |
1856 | 1854 | | |
1857 | 1855 | | |
| |||
1870 | 1868 | | |
1871 | 1869 | | |
1872 | 1870 | | |
1873 | | - | |
| 1871 | + | |
1874 | 1872 | | |
1875 | 1873 | | |
1876 | 1874 | | |
1877 | 1875 | | |
1878 | 1876 | | |
1879 | 1877 | | |
1880 | 1878 | | |
1881 | | - | |
| 1879 | + | |
1882 | 1880 | | |
1883 | 1881 | | |
1884 | 1882 | | |
| |||
1896 | 1894 | | |
1897 | 1895 | | |
1898 | 1896 | | |
1899 | | - | |
| 1897 | + | |
1900 | 1898 | | |
1901 | 1899 | | |
1902 | 1900 | | |
| |||
1911 | 1909 | | |
1912 | 1910 | | |
1913 | 1911 | | |
1914 | | - | |
1915 | | - | |
| 1912 | + | |
| 1913 | + | |
1916 | 1914 | | |
1917 | 1915 | | |
1918 | 1916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1106 | 1106 | | |
1107 | 1107 | | |
1108 | 1108 | | |
1109 | | - | |
| 1109 | + | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments