Skip to content

Commit ca8e3d8

Browse files
committed
didnt fix it
1 parent 18e6cd6 commit ca8e3d8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/class.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

test/stdlib/Class_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)