Skip to content

Commit d77f653

Browse files
authored
chore: add test for simultaneous 'import Lean' and 'import Std' (#673)
* chore: add test for simultaneous 'import Lean' and 'import Std' * omit from prohibition on importing Lean * CI didn't run? * fix
1 parent cbc437a commit d77f653

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
6767
- name: Don't 'import Lean', use precise imports
6868
if: always()
6969
run: |
70-
! (find . -name "*.lean" -type f -print0 | xargs -0 grep -E -n '^import Lean$')
70+
! (find . -name "*.lean" ! -path "./test/import_lean.lean" -type f -print0 | xargs -0 grep -E -n '^import Lean$')

test/import_lean.lean

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Lean
2+
import Std
3+
4+
/-!
5+
This file ensures that we can import all of `Lean` and `Std` without name conflicts.
6+
-/

0 commit comments

Comments
 (0)