Closed michael-dm closed 1 month ago
Omitting $"this" in conjonction with an id causes failure, though it should be assumed by default.
$"this"
Reproducing code:
// Works let fruit = world.entity(); query!(world, &Person, Likes($"this", $fruit)).build(); // Fails (should work) query!(world, &Person, Likes($fruit)).build();
Expected: Both queries should work, with $"this" assumed when omitted. Actual: Query fails when $"this" is omitted.
I am stupid, correct syntax is :
query!(world, &Person, (Likes, $fruit)).build();
Omitting
$"this"
in conjonction with an id causes failure, though it should be assumed by default.Reproducing code:
Expected: Both queries should work, with
$"this"
assumed when omitted. Actual: Query fails when$"this"
is omitted.