diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/bug2260.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/pos/bug2260.scala b/test/files/pos/bug2260.scala new file mode 100644 index 0000000000..4e4cc5ab2c --- /dev/null +++ b/test/files/pos/bug2260.scala @@ -0,0 +1,10 @@ +package top + +class Text(val value: String) extends Ordered[Text] { + def compare(that: Text) = value.compare(that.value) +} + +object Index { + import scala.collection.immutable.TreeMap + val tree = TreeMap.empty[Text, String] +} |