Skip to content

Commit 96f3f3a

Browse files
committed
Delete Ractor#[]= test
* Delete test * Depracate the method
1 parent dc14489 commit 96f3f3a

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

core/ractor.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ class Ractor
421421
# set a value in ractor-local storage for current Ractor Obsolete and use
422422
# Ractor.[]= instead.
423423
#
424+
%a{deprecated: Use Ractor.[]= instead}
424425
def []=: [T] (interned sym, T val) -> T
425426

426427
# <!--

test/stdlib/Ractor_test.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,16 +93,6 @@ class RactorInstanceTest < Test::Unit::TestCase
9393

9494
testing "::Ractor"
9595

96-
def test_aset
97-
omit "Accessing ractor local storage" if RUBY_VERSION >= "3.5"
98-
99-
r = Ractor.new {}
100-
assert_send_type "(String, String) -> String",
101-
r, :[]=, 'foo', 'bar'
102-
assert_send_type "(Symbol, Integer) -> Integer",
103-
r, :[]=, :foo, 42
104-
end
105-
10696
def test_close_incoming
10797
omit "Ractor#close_incoming is not implemented" if RUBY_VERSION >= "3.5"
10898

0 commit comments

Comments
 (0)