Skip to content

Commit 3e128c1

Browse files
committed
Add raise
1 parent 5d4404a commit 3e128c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/rbs/prototype/runtime.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ def merge_rbs(module_name, members, instance: nil, singleton: nil)
250250
method = builder.build_singleton(module_name.absolute!).methods[singleton]
251251
method_name = singleton
252252
kind = :singleton
253+
else
254+
raise
253255
end
254256

255257
if method

0 commit comments

Comments
 (0)