Skip to content

Predef.iterable2ordered does not define an ordering #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scabug opened this issue Oct 15, 2007 · 2 comments
Closed

Predef.iterable2ordered does not define an ordering #181

scabug opened this issue Oct 15, 2007 · 2 comments

Comments

@scabug
Copy link

scabug commented Oct 15, 2007

The code

package test;

object Test {
  def main(args : Array[String]) : Unit = {
    val l1 = List(1,2,3)
    val l2 = List(1,2,3,4)
    Console.println("l1 compare l2 = " + (l1 compare l2))
    Console.println("l2 compare l1 = " + (l2 compare l1))
  }
}

produces this inconsistent output:

l1 compare l2 = 0
l2 compare l1 = 1
@scabug
Copy link
Author

scabug commented Oct 15, 2007

Imported From: https://issues.scala-lang.org/browse/SI-181?orig=1
Reporter: Florian Hars (fhars)

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone 2.6.1 deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant