Rulebook variable "matched as" error in 6L02

The compiler accepts

The invariable rules are a rulebook.
The invariable rulebook has a room called the foo-place.
The bar is a room.

but rejects

The invariable rules are a rulebook.
The invariable rulebook has a room called the foo-place (matched as "foo").
The bar is a room.

with the error

Unless such variable tokens are now restricted to actions such as in The going action has a room called the room gone from (matched as “from”), I suspect a bug.

Similar code was used with 6G60 in Version 2 of Restrictions by Jon Ingold.

How were you using that “foo” term in 6G60? I see that you can define a rulebook that way but I can’t see how to use the word “foo” in a rule.

Does the example from the manual still work? I’ve always liked this little feature.

Which example? The manual has only ever talked about “matched as” for action variables, not rulebook variables. As far as I know.