Skip to content

Commit 9b6d438

Browse files
fix for inherited not supporting subclassing
the arg of inherited is a subclass of the current class, not (just) a ::Class
1 parent b3afd77 commit 9b6d438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/class.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class Class < Module
149149
# New subclass: Bar
150150
# New subclass: Baz
151151
#
152-
def inherited: (Class arg0) -> untyped
152+
def inherited: (instance arg0) -> untyped
153153

154154
# <!--
155155
# rdoc-file=object.c

0 commit comments

Comments
 (0)