diff --git a/core/basic_object.rbs b/core/basic_object.rbs index 3126e2b88..5302fb44f 100644 --- a/core/basic_object.rbs +++ b/core/basic_object.rbs @@ -369,4 +369,6 @@ class BasicObject # Undefining one # def singleton_method_undefined: (Symbol name) -> nil + + def self.superclass -> nil end diff --git a/core/class.rbs b/core/class.rbs index abfdc2164..fb2d1e1fe 100644 --- a/core/class.rbs +++ b/core/class.rbs @@ -216,5 +216,5 @@ class Class < Module # # BasicObject.superclass #=> nil # - def superclass: () -> Class? + # def superclass: () -> Class? end diff --git a/core/object.rbs b/core/object.rbs index 2fee491f4..1f3f61b83 100644 --- a/core/object.rbs +++ b/core/object.rbs @@ -107,6 +107,8 @@ # class Object < BasicObject include Kernel + + def self.superclass() -> Class end # A previous incarnation of `interned` for backward-compatibility (see #1499)