curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1807] [Mantis 1843] Property names containing the word "of" are sometimes misparsed, depending on unrelated code #277

Open curiousdannii-testing opened 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : fundin

Description :

Consider the source text below. The lines [1] and [2] are completely unrelated, but the presence of line [2] causes line [1] to be misunderstood in some way. Here is the problem message:

Problem. You wrote 'A thing has a text called the out of bounds response': but only an object, kind, rulebook, action or activity can be allowed to have properties or variables, so for instance 'A door has a colour' is fine but not 'A number has a length'.

This does not happen if line [2] is removed, nor does it happen if the two lines are switched around.

Steps to reproduce :

Home is a room.

A thing has a text called the out of bounds response. [1]

A foobar is a kind of value. The foobars are foo and bar. [2]

Additional information :

This is a regression in 6M62. The "out of bounds response" in the example is from Computers by Emily Short; the extension still works on its own, but it now fails to compile in the presence of such code as line [2] here.

imported from: [Mantis 1843] Property names containing the word "of" are sometimes misparsed, depending on unrelated code
  • status: Reported
  • resolution: Open
  • resolved: 2022-04-07T05:01:07+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:

Comment by zarf :
Confirmed, slightly late. See also http://inform7.com/mantis/view.php?id=2060 .