Skip to content

Commit 78e5e57

Browse files
committed
[Kernel] Narrow caller_locations
1 parent 3d0fb3a commit 78e5e57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/kernel.rbs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ module Kernel : BasicObject
187187
# rdoc-file=vm_backtrace.c
188188
# - caller_locations(start=1, length=nil) -> array or nil
189189
# - caller_locations(range) -> array or nil
190+
# - caller_locations -> array
190191
# -->
191192
# Returns the current execution stack---an array containing backtrace location
192193
# objects.
@@ -204,8 +205,9 @@ module Kernel : BasicObject
204205
# Optionally you can pass a range, which will return an array containing the
205206
# entries within the specified range.
206207
#
207-
def self?.caller_locations: (?Integer start_or_range, ?Integer length) -> ::Array[Thread::Backtrace::Location]?
208-
| (?::Range[Integer] start_or_range) -> ::Array[Thread::Backtrace::Location]?
208+
def self?.caller_locations: (Integer start_or_range, ?Integer length) -> ::Array[Thread::Backtrace::Location]?
209+
| (::Range[Integer] start_or_range) -> ::Array[Thread::Backtrace::Location]?
210+
| () -> ::Array[Thread::Backtrace::Location]
209211

210212
# <!--
211213
# rdoc-file=vm_eval.c

0 commit comments

Comments
 (0)