From 478ad9193e0f9d80ac5f08fbc405c8babf50584c Mon Sep 17 00:00:00 2001 From: ksss Date: Sun, 14 Apr 2024 22:59:11 +0900 Subject: [PATCH 1/2] Fix block return type --- core/enumerator.rbs | 2 +- test/stdlib/Enumerator_test.rb | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/core/enumerator.rbs b/core/enumerator.rbs index b3ae0bd24..30b32d46f 100644 --- a/core/enumerator.rbs +++ b/core/enumerator.rbs @@ -293,7 +293,7 @@ class Enumerator[unchecked out Elem, out Return] < Object # lazy fashion (see Enumerator#size). It can either be a value or a callable # object. # - def initialize: (?Integer arg0) { (Enumerator::Yielder arg0) -> void } -> void + def initialize: (?Integer arg0) { (Enumerator::Yielder arg0) -> Return } -> void #