File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff 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 # <!--
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments