Commit fba0da3
Tighten condition when to do SAM type conversion
- No conversion from contextual lambdas
- No conversion after erasure
Fixes scala#23234
[Cherry-picked 5170dca]1 parent 0a3abee commit fba0da3
File tree
2 files changed
+7
-1
lines changed- compiler/src/dotty/tools/dotc/typer
- tests/neg-custom-args/captures
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1701 | 1701 | | |
1702 | 1702 | | |
1703 | 1703 | | |
1704 | | - | |
| 1704 | + | |
| 1705 | + | |
1705 | 1706 | | |
1706 | 1707 | | |
1707 | 1708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments