Skip to content
Snippets Groups Projects
Commit e7352ff4b488 authored by Sylvain Thenault's avatar Sylvain Thenault
Browse files

should not considered neged non final relation when computing all possible types

parent 71eda622760b
No related branches found
No related tags found
No related merge requests found
......@@ -338,6 +338,12 @@
def visit_type_restriction(self, relation, constraints):
pass
def visit_not(self, et, constraints):
child = et.children[0]
if isinstance(child, nodes.Relation) and \
not self.schema.rschema(child.r_type).is_final():
return True
# ==========================================================
class UnifyError(Exception):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment