fix: typo
This commit is contained in:
parent
c7beb283e9
commit
522cbc16d9
1 changed files with 1 additions and 1 deletions
|
|
@ -659,7 +659,7 @@ private def throwUnexpectedType {α} (typeName : Name) (constName : Name) : Exce
|
|||
This function is still unsafe because it cannot guarantee that `typeName` is in fact the name of the type `α`. -/
|
||||
unsafe def evalConstCheck (α) (env : Environment) (opts : Options) (typeName : Name) (constName : Name) : ExceptT String Id α :=
|
||||
match env.find? constName with
|
||||
| none => throw ("unknow constant '" ++ toString constName ++ "'")
|
||||
| none => throw ("unknown constant '" ++ toString constName ++ "'")
|
||||
| some info =>
|
||||
match info.type with
|
||||
| Expr.const c _ _ =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue