You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is not with the typechecking itself, but instead with sorbet-runtime. Executing this file results in:
Traceback (most recent call last):
3: from main.rb:5:in `<main>'
2: from /var/lib/gems/2.5.0/gems/sorbet-runtime-0.4.4254/lib/types/sig.rb:24:in `sig'
1: from /var/lib/gems/2.5.0/gems/sorbet-runtime-0.4.4254/lib/types/private/methods/_methods.rb:16:in `declare_sig'
/var/lib/gems/2.5.0/gems/sorbet-runtime-0.4.4254/lib/types/private/methods/_methods.rb:307:in `install_hooks': undefined method `singleton_class?' for main:Object (NoMethodError)
Did you mean? singleton_class
(Note that line 5 is the sig line.)
I am using "Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]", on Ubuntu 18.04. The behaviour does not change whether I execute the file using Bundler (bundle exec ruby main.rb) or just with the standard Ruby interpreter directly (ruby main.rb).
Expected behavior
I would expect that the file executes successfully and prints 2.
The text was updated successfully, but these errors were encountered:
AaronC81
changed the title
undefined method "singleton_class?" for main:Object
Bug with undefined method "singleton_class?" when executing file
Jun 20, 2019
AaronC81
changed the title
Bug with undefined method "singleton_class?" when executing file
Bug with undefined method "singleton_class?" when executing file with top-level methods
Jun 20, 2019
jez
changed the title
Bug with undefined method "singleton_class?" when executing file with top-level methods
runtime: Top-level extend T::Sig is not supported
Aug 23, 2019
Input
→ View on sorbet.run
Observed output
The issue is not with the typechecking itself, but instead with
sorbet-runtime
. Executing this file results in:(Note that line 5 is the
sig
line.)I am using "Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]", on Ubuntu 18.04. The behaviour does not change whether I execute the file using Bundler (
bundle exec ruby main.rb
) or just with the standard Ruby interpreter directly (ruby main.rb
).Expected behavior
I would expect that the file executes successfully and prints 2.
The text was updated successfully, but these errors were encountered: