Works for me on scala 2.10.0
then paste in the code you supply above.
makeOrderedLeafList compiles without error and seems to work in the intended way:
scala> makeOrderedLeafList(List(('a',8),('b',9),('c',99),('d',1))) res0: List[Leaf] = List(Leaf(d,1), Leaf(a,8), Leaf(b,9), Leaf(c,99))
- Scala diverging implicit expansion compiler error
- Extending generic type with Ordered trait makes sbt compiler issue 'diverging implicit expansion for type' error
- Scala diverging implicit expansion for cats.effect.Timer when using monix TaskApp
- Diverging implicit expansion error using SortedSet
- Scala diverging implicit expansion
- Scala - diverging implicit expansion when using toMap
- What is a diverging implicit expansion error?
- Make Scala compiler stop on first error
- Why does IDEA report "Error:scalac: error while loading Object, Missing dependency 'object scala in compiler mirror'" building scala breeze?
- at scala project, compiler error - Cannot resolve symbol List?
- scala - Confusing "diverging implicit expansion" error when using "sortBy"
- Scala implicit parameters are marked as unused by the compiler
- How does the Scala compiler perform implicit conversion?
- Scala error Could not find implicit value for parameter
- Scala compiler doesn't behave as expected with use of an implicit val set to null
- Scala compiler error due to constructor parameter (property) having same name in both base and derived class and used in derived method
- Why does scala compiler fail to find implicit parameter value/conversion when it is an overload and has generic type param?
- Show Ant Scala compiler error with Gradle
- Error passing generic values to method using implicit parameter in Scala
- Scala compiler error : only classes can have declared but undefined members
- Scala compiler build error JComboBox type parameters
- what should a scala implicit macro have to return to tell the compiler "forget my result, continue your search"
- Scala implicit ambiguous example modification not throwing compile error
- Scala 2.10 "No implicit view available" error on type parameter that asks for a view
- Why does the Scala compiler error with "Synthetic tree contains nonsynthetic tree"?
- diverging implicit expansion for type io.circe.Encoder[scala.collection.immutable.Map[Int,Any]]
- diverging implicit expansion in implicit val GetResult
- Workaround for a "diverging implicit expansion" error in Scala 2.10
- Strange Scala compiler error when removing a call to a function that has Unit return type, how is this even possible?
- Scala strange implicit boxing conversion error
More Query from same tag
- Recursive type for tuple like type
- scala com.datastax.driver.core.Row.getList usage
- Casbah - check if string is parseable as ObjectId
- Convert scala list to Json object
- How to Merge or skip duplicate messages in a Scala Actor?
- IntelliJ Scala configuration issue
- how to get number of days between two java.sql.timestamp field in scala
- Scala 'nothing to override' error
- HBase Concurrent / Parallel Scan from Spark 1.6, Scala 2.10.6 besides multithreading
- Scala hex literal for bytes
- Invalid use of argument matchers 0 matches expected. 3 recorded
- How to Stop Spark Streaming
- How hashing algorithm works in Dataset.repartition
- How to update properties of child actors from supervisor?
- How to change the location of twirl templates for integration tests?
- Looking for examples for structures that apply some but not all properties of a Monad
- Why is charAt invoked when calling capitalize with arguments in Scala
- what actions can I perform on a Column
- Play Framework 2 - Scala template: How to call a specific method on a generic object?
- How to group top item from a JavaRDD without using Spark SQL?
- Scala missing parameter type in type class operator
- Scala Databinder Dispatch Http shutdown
- Scala equivalent for Javas stream findFirst()
- How to access to a value of a scala Tuples
- Scala generating permutations of list runs out of memory
- Race condition when generating data with a GenericInputFormat
- handling scala futures out of memory error
- type annotations overriden by inferred expression type
- Convert Numeric type to Double without parameter
- Better Way to Handle Nested Monad?