Truebase-com / TruthStack

Monorepo for the Truth technology stack.
10 stars 1 forks source link

Fix Type.has method #22

Closed qti3e closed 5 years ago

qti3e commented 5 years ago

The current implementation for Type.has was producing wrong results for the following Truth file:

C
B
A:
  B: C

running the following JavaScript code must produce false while it was producing true.

doc.query("A").has(doc.query("B"))