infer: Remove redundant checks for field selections and record projections (#1368)
… as pointed out by @MonoidMusician in #741.
This commit is contained in:
parent
75e6cc5ca7
commit
a4b4cfb1b3
|
@ -1107,8 +1107,6 @@ infer typer = loop
|
|||
|
||||
case _E' of
|
||||
VRecord xTs' -> do
|
||||
_ <- loop ctx _E''
|
||||
|
||||
case Dhall.Map.lookup x xTs' of
|
||||
Just _T' -> return _T'
|
||||
Nothing -> die (MissingField x _E'')
|
||||
|
@ -1135,8 +1133,6 @@ infer typer = loop
|
|||
|
||||
case _E' of
|
||||
VRecord xTs' -> do
|
||||
_ <- loop ctx _E''
|
||||
|
||||
let process x =
|
||||
case Dhall.Map.lookup x xTs' of
|
||||
Just _T' -> return (x, _T')
|
||||
|
|
Loading…
Reference in New Issue
Block a user