We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6914968 commit 887f4a4Copy full SHA for 887f4a4
2 files changed
core/fiber.rbs
@@ -86,7 +86,7 @@ class Fiber < Object
86
#
87
# See also Fiber::[]=.
88
89
- def self.[]: (Symbol | String) -> untyped
+ def self.[]: (Symbol) -> untyped
90
91
# <!--
92
# rdoc-file=cont.c
@@ -99,7 +99,7 @@ class Fiber < Object
99
100
# See also Fiber::[].
101
102
- def self.[]=: [A] (Symbol | String, A) -> A
+ def self.[]=: [A] (Symbol, A) -> A
103
104
105
test/stdlib/Fiber_test.rb
@@ -15,18 +15,6 @@ def test_aref
15
"(Symbol) -> Integer",
16
Fiber, :[], :key
17
)
18
-
19
- key = "string"
20
21
- assert_send_type(
22
- "(String, Integer) -> Integer",
23
- Fiber, :[]=, key, 123
24
- )
25
26
27
- "(String) -> Integer",
28
- Fiber, :[], key
29
30
end
31
32
def test_blocking?
0 commit comments