Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 replace the unnecessary check in from Checking.scala to assertion and deleted the `ErrorMessage` definition for `TopLevelCantBeImplicit`. I'm leaving the `TopLevelCantBeImplicitID` in `ErrorMessageID.scala` so we don't screw up the error number.
- Loading branch information