Commit d2fcfab
committed
Relax the SAMType#isInstantiable check
Narrowing the type is not necessary to check for instantiability, and it
prevents valid SAM types with wildcards from being used. This commit
does not contain any positive testcase because SAM types with wildcards
need another fix present in the next commit to work.1 parent 83c3de7 commit d2fcfab
File tree
2 files changed
+15
-3
lines changed- compiler/src/dotty/tools/dotc/core
- tests/neg
2 files changed
+15
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3811 | 3811 | | |
3812 | 3812 | | |
3813 | 3813 | | |
3814 | | - | |
3815 | | - | |
3816 | | - | |
| 3814 | + | |
| 3815 | + | |
3817 | 3816 | | |
3818 | 3817 | | |
3819 | 3818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments