Skip to content

Commit dc14489

Browse files
committed
Update Ractor#[]
* Delete the test * Add deprecated mark
1 parent d87a566 commit dc14489

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

core/ractor.rbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ class Ractor
411411
# get a value from ractor-local storage for current Ractor Obsolete and use
412412
# Ractor.[] instead.
413413
#
414+
%a{deprecated: Use Ractor.[] instead}
414415
def []: (interned sym) -> untyped
415416

416417
# <!--

test/stdlib/Ractor_test.rb

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

9494
testing "::Ractor"
9595

96-
def test_aref
97-
omit "Accessing ractor local storage" if RUBY_VERSION >= "3.5"
98-
99-
r = Ractor.new {}
100-
r['foo'] = 'bar'
101-
assert_send_type "(String) -> untyped",
102-
r, :[], 'foo'
103-
assert_send_type "(Symbol) -> untyped",
104-
r, :[], :foo
105-
end
106-
10796
def test_aset
10897
omit "Accessing ractor local storage" if RUBY_VERSION >= "3.5"
10998

0 commit comments

Comments
 (0)