mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 09:49:24 +03:00
[ fix #1035 ] Not an internal error
This commit is contained in:
parent
e9f4dc5252
commit
c2532acfd8
@ -646,7 +646,9 @@ mutual
|
||||
getFn (IApp _ f _) = getFn f
|
||||
getFn (IAutoApp _ f _) = getFn f
|
||||
getFn (INamedApp _ f _ _) = getFn f
|
||||
getFn tm = throw (InternalError (show tm ++ " is not a function application"))
|
||||
getFn tm = throw $ case tm of
|
||||
Implicit fc _ => GenericMsg fc "Invalid name for a declaration"
|
||||
_ => InternalError (show tm ++ " is not a function application")
|
||||
|
||||
toIDef : ImpClause -> Core ImpDecl
|
||||
toIDef (PatClause fc lhs rhs)
|
||||
|
Loading…
Reference in New Issue
Block a user