Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: move Lean.List.toSMap to List.toSMap (leanprover#3035)
This definition was clearly meant to be in the `List` namespace, but it is also in a `namespace Lean` so it ended up as `Lean.List.toSMap` instead of `List.toSMap`. It would be nice if leanprover#3031 made this unnecessary, but for now this seems to be the convention. I noticed this because of another side effect: it defines `Lean.List` as a namespace, which means that ```lean import Std namespace Lean open List #check [1] <+ [2] ``` does not work as expected, it opens the `Lean.List` namespace instead of the `List` namespace. Should there be a regression test to ensure that the `Lean.List` namespace (and maybe others) are not accidentally created? (Unfortunately this puts a bit of a damper on leanprover#3031.)
- Loading branch information