From 49593f87b10cf8cb87405c3fb75917c84cb64135 Mon Sep 17 00:00:00 2001 From: SamW Date: Fri, 17 Oct 2025 19:05:30 -0700 Subject: [PATCH] [Kernel] Add tests for Exiting and Exception functions --- core/kernel.rbs | 2 +- lib/rbs/unit_test/type_assertions.rb | 25 +++++ sig/unit_test/type_assertions.rbs | 11 ++ test/stdlib/Kernel_test.rb | 144 +++++++++++++++++++++++++++ 4 files changed, 181 insertions(+), 1 deletion(-) diff --git a/core/kernel.rbs b/core/kernel.rbs index b50e58111..7e67cf811 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -1004,7 +1004,7 @@ module Kernel : BasicObject # def self?.fail: () -> bot | (string message, ?cause: Exception?) -> bot - | (_Exception exception, ?_ToS? message, ?String | Array[String] | Array[Thread::Backtrace::Location] | nil backtrace, ?cause: Exception?) -> bot + | (_Exception exception, ?string | _ToS message, ?String | Array[String] | Array[Thread::Backtrace::Location] | nil backtrace, ?cause: Exception?) -> bot | (_Exception exception, ?cause: Exception?, **untyped) -> bot #