Closed curiousdannii-testing closed 2 years ago
557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:
Comment by graham :
Fixed - an important one to catch.
557058:4c095ffd-6d6f-47ce-9e73-77c613347b86:
Comment by zarf :
In the generated I6, you can see that the compiler is using object property syntax (x.y) even though metal is a KOV.
! [1: if the stiffness of metal is hard begin]
if (((GProperty(52, I126_metal,p15_stiffness) == I131_hard))){ ! [2: say ~Yes (1).~] say__p=1;ParaContent(); print "Yes (1)."; new_line; .L_Say1; .L_SayX1; ! [3: end if] }
! [4: if metal feels hard begin]
if (((I126_metal.p15_stiffness == I131_hard))){ ! [5: say ~Yes (2).~] say__p=1;ParaContent(); print "Yes (2)."; new_line; .L_Say2; .L_SayX2; ! [6: end if] }
Reported by : zarf
Description :
In the code below, the first test works correctly. The second one triggers a run-time error:
Steps to reproduce :
Additional information :
imported from: [Mantis 1564] Sentence verb fails for a property of a KOV