curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-2017] [Mantis 2054] Properties of generic objects not assigned correctly #67

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : DrFell

Description :

Let K be a kind with property P. A declaration such as "There is a K with P (property);" does not correctly assign the property (which is instead set to the default value).

.

Steps to reproduce :

X is a room.

A foo is a kind of thing. A foo has a number called the bar.
There is a foo with bar 57.

When play begins: say the bar of a random foo.

Additional information :

If the object is placed on-stage in the declaration which creates it, then P is assigned correctly.

---------------------------------------

A book is a kind of thing. A book has a text called the title.
Understand the title property as describing a book.
Understand the title property as describing a book.
After printing the name of a book: say " ([Title])"

The Library is a room.
There is a book with title "Bleak House" in the library.
There is a book with title "David Copperfield". It is in the library.

-------------------------------------------

Library
You can see a book (Bleak House) and a book () here.

imported from: [Mantis 2054] Properties of generic objects not assigned correctly
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-10T03:47:23+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

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

Comment by zarf :
Confirmed.

curiousdannii-testing commented 2 years ago

61eedb62875fc10070240916:

Fixed via this commit: https://github.com/ganelson/inform/commit/39a7ca64171e3101a261205d68f2da208163d6f7