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

Drop second type parameter of Enumerable and _Each #474

Merged
merged 5 commits into from
Nov 13, 2020
Merged

Conversation

soutaro
Copy link
Member

@soutaro soutaro commented Nov 13, 2020

  • The second type parameter is not used so much.
  • To make the type definition more compatible with Sorbet.

@@ -66,24 +66,24 @@ module Enumerable[unchecked out Elem, out Return]: _Each[Elem, Return]
| () { (Elem) -> boolish } -> Integer

def cycle: (?Integer n) { (Elem arg0) -> untyped } -> NilClass
| (?Integer n) -> ::Enumerator[Elem, Return]
Copy link
Member Author

Choose a reason for hiding this comment

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

Many Returns in Enumerable definition are incorrect.

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

Successfully merging this pull request may close these issues.

1 participant