Skip to content

Commit 9116235

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/kernel.rbs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,9 @@ module Kernel : BasicObject
204204
# Optionally you can pass a range, which will return an array containing the
205205
# entries within the specified range.
206206
#
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]?
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]?
209+
| () -> ::Array[Thread::Backtrace::Location]
209210

210211
# <!--
211212
# rdoc-file=vm_eval.c

0 commit comments

Comments
 (0)