Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/builtin/basic_object.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BasicObject
def equal?: (untyped other) -> bool

def instance_eval: (?String arg0, ?String filename, ?Integer lineno) -> untyped
| [U] () { () -> U } -> U
| [U] () { (self) -> U } -> U

def instance_exec: [U, V] (*V args) { (untyped args) -> U } -> U

Expand Down
8 changes: 8 additions & 0 deletions test/stdlib/BasicObject_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class BasicObjectTest < StdlibTest
target BasicObject
using hook.refinement

def test_instance_eval
BasicObject.new.instance_eval { |x| x }
end
end