From 87efbc70a926bf4e47b6d3a0ce01c8b489ed52a9 Mon Sep 17 00:00:00 2001 From: Oskar Eichler <62393985+OskarEichler@users.noreply.github.com> Date: Sun, 30 Aug 2026 06:33:05 +0200 Subject: [PATCH] Complete block hash semantics --- lib/rbs/types.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/rbs/types.rb b/lib/rbs/types.rb index 5fa045f8a2..b6cff3c819 100644 --- a/lib/rbs/types.rb +++ b/lib/rbs/types.rb @@ -1407,6 +1407,12 @@ def ==(other) other.self_type == self_type end + alias eql? == + + def hash + self.class.hash ^ type.hash ^ required.hash ^ self_type.hash + end + def to_json(state = nil) { type: type,