Skip to content

Signature selection improvements #907

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

Draft
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

apiology
Copy link
Contributor

@apiology apiology commented Apr 21, 2025

To do:

  • Add spec for and fix nil/empty string type in string range dereference
  • Add spec for and fix "Wrong argument type for String#=~: object expected String::_MatchAgainst<String, undefined>, received Regexp"
  • Add spec for and fix "Wrong argument type for Encoding.default_external=: enc expected generic, received String"
  • Get ['Boolean', 'self', nil].include?(tag) to typecheck

apiology added 25 commits April 21, 2025 19:01
Existing one interferes with the one used by the rbs repo, so we
overlap numbers when not all arguments of a method are anonymous
* Ensure method aliases are processed with resolve_generics()
* Avoid an extra hop in get_methods() resulting in no alias resolution
@@ -1052,6 +1052,25 @@ def foo a
expect(clip.infer.to_s).to eq('Foo, Bar')
end

# pending https://github.com/castwide/solargraph/pull/836
xit 'handles parallel type possibilities with #nil?' do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect there will also some untested related regressions with this PR solo - to be safe, I think we should release this PR in the same release as #836 . I'll keep them as separate PRs for ease of review in the meantime.

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

Successfully merging this pull request may close these issues.

1 participant