Added precondition to WSF_FILTER.set_next (..) to avoid cycle.
This commit is contained in:
@@ -29,6 +29,8 @@ feature -- Element change
|
|||||||
|
|
||||||
set_next (a_next: like next)
|
set_next (a_next: like next)
|
||||||
-- Set `next' to `a_next'
|
-- Set `next' to `a_next'
|
||||||
|
require
|
||||||
|
a_next_is_not_current: a_next /= Current
|
||||||
do
|
do
|
||||||
next := a_next
|
next := a_next
|
||||||
ensure
|
ensure
|
||||||
|
|||||||
Reference in New Issue
Block a user