Skip to content
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

Warning indicates Any and Any are unrelated #8965

Closed
scabug opened this issue Nov 6, 2014 · 2 comments
Closed

Warning indicates Any and Any are unrelated #8965

scabug opened this issue Nov 6, 2014 · 2 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Nov 6, 2014

class A {
  def f(x: Any with AnyRef, y: Any with AnyRef) = x eq y
  // a.scala:2: warning: Any and Any are unrelated: they will most likely never compare equal
  //   def f(x: Any with AnyRef, y: Any with AnyRef) = x eq y
  //                                                     ^
  // one warning found
}
@scabug
Copy link
Author

scabug commented Nov 6, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8965?orig=1
Reporter: @paulp
Affected Versions: 2.11.4

@scabug
Copy link
Author

scabug commented Nov 7, 2014

@retronym said:
scala/scala#4102

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

No branches or pull requests

2 participants