From 911623599c20a60d69903cd7ae4eefa5a01abbd1 Mon Sep 17 00:00:00 2001 From: Victor Pellan Date: Fri, 12 Dec 2025 19:47:30 +0100 Subject: [PATCH 1/2] [Kernel] Narrow caller_locations --- core/kernel.rbs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/kernel.rbs b/core/kernel.rbs index 777ea2947..bad5a1a02 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -204,8 +204,9 @@ module Kernel : BasicObject # Optionally you can pass a range, which will return an array containing the # entries within the specified range. # - def self?.caller_locations: (?Integer start_or_range, ?Integer length) -> ::Array[Thread::Backtrace::Location]? - | (?::Range[Integer] start_or_range) -> ::Array[Thread::Backtrace::Location]? + def self?.caller_locations: (Integer start_or_range, ?Integer length) -> ::Array[Thread::Backtrace::Location]? + | (::Range[Integer] start_or_range) -> ::Array[Thread::Backtrace::Location]? + | () -> ::Array[Thread::Backtrace::Location] #