# HG changeset patch # User Jaroslav Tulach # Date 1354709873 -3600 # Node ID 87bcc647df633f2db56a8d3677ebf5d67769546f # Parent dc0d785c5b5d036457fe67432ec546c36073134d Bob pointed out that the extends bound is not necessary in Listable. Enough to have it in List. diff -r dc0d785c5b5d -r 87bcc647df63 samples/effectivelist/src/org/apidesign/effectivelist/Listable.scala --- a/samples/effectivelist/src/org/apidesign/effectivelist/Listable.scala Mon Sep 03 01:06:24 2012 +0200 +++ b/samples/effectivelist/src/org/apidesign/effectivelist/Listable.scala Wed Dec 05 13:17:53 2012 +0100 @@ -4,7 +4,7 @@ * to previous and next items in the list effective. */ // BEGIN: effectivelist.item -trait Listable[T <: Listable[T]] { +trait Listable[T] { private[effectivelist] var prev : T = _ private[effectivelist] var next : T = _ }