From 8191f903c9d580b409dc6aedc55f3c4542eb5688 Mon Sep 17 00:00:00 2001 From: ksss Date: Fri, 21 Jun 2024 17:14:03 +0900 Subject: [PATCH] Support `nil`, `#call` and `#to_int` --- core/enumerator.rbs | 6 +++++- test/stdlib/Enumerator_test.rb | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/core/enumerator.rbs b/core/enumerator.rbs index 30b32d46f..099b442a5 100644 --- a/core/enumerator.rbs +++ b/core/enumerator.rbs @@ -269,6 +269,10 @@ class Enumerator[unchecked out Elem, out Return] < Object # def feed: (Elem arg0) -> NilClass + interface _Call + def call: () -> untyped + end + #