File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -1310,7 +1310,7 @@ def initialize
13101310 frame . _local_variables = b . local_variables . map { |name |
13111311 [ name , b . local_variable_get ( name ) ]
13121312 } . to_h
1313- frame . _callee = b . eval ( '__callee__' )
1313+ frame . _callee = b . eval ( '::Kernel. __callee__' )
13141314 end
13151315 }
13161316 append ( frames )
Original file line number Diff line number Diff line change @@ -315,4 +315,24 @@ def test_1663647719
315315 end
316316 end
317317 end
318+
319+ class RecordOnBasicClassTest < ConsoleTestCase
320+ def program
321+ <<~RUBY
322+ 1| class Test < BasicObject
323+ 2| def test
324+ 3| 42
325+ 4| end
326+ 5| end
327+ 6| Test.new.test
328+ RUBY
329+ end
330+
331+ def test_issue1152
332+ debug_code program do
333+ type 'record on'
334+ type 'c'
335+ end
336+ end
337+ end
318338end
You can’t perform that action at this time.
0 commit comments