Commit 2042a08
committed
refactor: TopLevel implicit is now allowed
It seems like TopLevelCantBeImplicit is no longer the case as of #5754
And it is actually confirmed in https://github.com/lampepfl/dotty/blob/93fc41fcb624df73cc12d52b79d518a30a778a7c/tests/run/toplevel-implicits/a.b.scala#L19-L21
This commit removes the unnecessary check in from Checking.scala
and deleted the `ErrorMessage` definition for `TopLevelCantBeImplicit`.
I'm leaving the `TopLevelCantBeImplicitID` in `ErrorMessageID.scala` so
we don't screw up the error number.1 parent eb6aaa0 commit 2042a08
File tree
2 files changed
+0
-9
lines changed- compiler/src/dotty/tools/dotc
- reporting
- typer
2 files changed
+0
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1510 | 1510 | | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | 1513 | | |
1521 | 1514 | | |
1522 | 1515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
| |||
0 commit comments