-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: collect level parameters in evalExpr
`elabEvalUnsafe` already does something similar.
- Loading branch information
1 parent
62c3e56
commit 8335d4e
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import Lean | ||
|
||
open Lean | ||
|
||
def foo.{u} : Nat := (ULift.up.{u} Nat.zero).down | ||
|
||
universe u in | ||
#eval foo.{u} | ||
|
||
-- this used to produce an error | ||
#eval do | ||
let u : Lean.Level := .param `u | ||
Meta.evalExpr Nat (.const ``Nat []) (.const ``foo [u]) |