Multi-constraint formal generics: access to renamed feature is not clickable after recompilation
Posted May 29th, 2007 by alexk_es
in
Purpose:
Recompilation of a system with a class that accesses renamed features on multi-constraint formal generic type should always leave the corresponding feature names clickable in the flat feature view.
Test procedure:
- Create and compile the system with the following classes:class A feature
f: STRING is
do
Result := "A"
end
end
class B feature
f: STRING is
do
Result := "B"
end
end
class C feature
f: STRING is
do
Result := "C"
end
end
class D inherit
A
undefine
f
end
B
end
class E inherit
A
undefine
f
end
C
end
class F inherit
D
rename
f as d_f
select
d_f
end
E
rename
f as e_f
end
end
class X [G -> {
D
rename
f as d_f
end,
E
rename
default_create as e_default_create,
f as e_f
end
} create default_create end
]
feature
f is
do
create item
io.put_string (item.d_f)
io.put_new_line
io.put_string (item.e_f)
io.put_new_line
end
item: G
end - Change classes
D,E,Fas follows:class D inherit
B
end
class E inherit
C
end
class F inherit
D
rename
f as d_f
end
E
rename
f as e_f
end
end - Recompile the system.
- Open flat view for the feature
{X}.fin Feature Relation panel.
Expected result:
Calls to the features d_f and e_f are clickable.
- Login or register to post comments
- Add new test run report
Test runs
| ID | Date | Platform | Result |
|---|---|---|---|
| trr#293 | 1 year 12 weeks ago | All platforms | Failed |