mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-16 23:36:00 -06:00
ignore the lock field when checking for subsumption
This commit is contained in:
@@ -825,7 +825,7 @@ subsCheckRho scope t ty1@(VRecType rs1) ty2@(VRecType rs2) = do -- Rule REC
|
|||||||
(scope,mkProj,mkWrap) <- mkAccess scope t
|
(scope,mkProj,mkWrap) <- mkAccess scope t
|
||||||
|
|
||||||
let fields = [(l,ty2,lookup3 l rs1) | (l,o2,ty2) <- rs2]
|
let fields = [(l,ty2,lookup3 l rs1) | (l,o2,ty2) <- rs2]
|
||||||
case [l | (l,_,Nothing) <- fields] of
|
case [l | (l,_,Nothing) <- fields, not (isLockLabel l)] of
|
||||||
[] -> return ()
|
[] -> return ()
|
||||||
missing -> evalError ("In the term" <+> pp t $$
|
missing -> evalError ("In the term" <+> pp t $$
|
||||||
"there are no values for fields:" <+> hsep missing)
|
"there are no values for fields:" <+> hsep missing)
|
||||||
|
|||||||
Reference in New Issue
Block a user