Opened 15 years ago
Last modified 15 years ago
#1181 closed defect (fixed)
Lookup fail when extending Philosopher.DiningTable class but not when instantiating it.
Reported by: | Peter Aronsson | Owned by: | Peter Aronsson |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Peter Aronsson, Martin Sjölund |
Description
When extending the class, i.e.
'model Philosopher_DiningTable
extends Philosopher.DiningTable;
end Philosopher_DiningTable;'
I get the error:
Error: Variable timeToChangeState not found in scope Philosopher.Philosopher
[Philosopher.mo:13:5-13:46:readonly] Error: Variable phil: In modifier (sigma = sigma), class or component sigma not found in <Philosopher>
However, when creating a component it works fine:
'model Philosopher_DiningTable
Philosopher.DiningTable t;
end Philosopher_DiningTable;'
Attachments (1)
Note:
See TracTickets
for help on using tickets.
This problem is fixed in my local copy (which can't be committed because it has other issues).