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

Fix type inference for static equals methods (and others found on java.lang.Object) #595

Closed
eric-milles opened this issue Jun 4, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@eric-milles
Copy link
Member

Method call Chars.equals showing as unknown (underlined) and hover shows javadoc for Object.equals.

class Chars {
  static boolean equals(char[] a, char[] b) {
  }
  static void main(char[] x, char[] y) {
    if (Chars.equals(x, y)) {
    }
  }
}
@eric-milles eric-milles added the bug label Jun 4, 2018
@eric-milles eric-milles self-assigned this Jun 4, 2018
@eric-milles eric-milles changed the title Improper type inferencing for static equals variant Fix type inference for static equals methods Jun 5, 2018
@eric-milles
Copy link
Member Author

Related to #525

@eric-milles eric-milles changed the title Fix type inference for static equals methods Fix type inference for static equals methods (and others found on java.lang.Object) Jun 5, 2018
@eric-milles eric-milles added this to the v3.0.0 milestone Jun 5, 2018
eric-milles added a commit that referenced this issue Jun 5, 2018
Chars.equals(x, y) should not infer as Object.equals(Object) (see test)
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

1 participant