File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class Class < Module
124124 # TrueClass.attached_object #=> TypeError: `TrueClass' is not a singleton class
125125 # NilClass.attached_object #=> TypeError: `NilClass' is not a singleton class
126126 #
127- def attached_object : () -> instance
127+ def attached_object : () -> untyped
128128
129129 # <!--
130130 # rdoc-file=object.c
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ def test_initialize
3939 assert_send_type "() -> void" ,
4040 Class . allocate , :initialize
4141
42- assert_send_type "() { (Class) [self: untyped ] -> void } -> void" ,
42+ assert_send_type "() { (Class) [self: Class ] -> void } -> void" ,
4343 Class . allocate , :initialize do end
4444
4545 assert_send_type "(Class) -> void" ,
4646 Class . allocate , :initialize , String
4747
48- assert_send_type "(Class) { (Class) [self: untyped ] -> void } -> void" ,
48+ assert_send_type "(Class) { (Class) [self: Class ] -> void } -> void" ,
4949 Class . allocate , :initialize , String do end
5050 end
5151
@@ -62,8 +62,8 @@ def test_subclasses
6262 end
6363
6464 def test_attached_object
65- assert_send_type "() -> singleton(String) " ,
66- String . singleton_class , :attached_object
65+ assert_send_type "() -> untyped " ,
66+ Subclass . new . singleton_class , :attached_object
6767 end
6868
6969 def test_inherited
You can’t perform that action at this time.
0 commit comments