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
moduleMyModuleclassBardefinitialize# emptyendendclassBaz# emptyendclassFoo1 < Barclass << self# This is an error## @return [Foo1]deffoonewendendendclassFoo2 < Bazclass << self# But this is not an error, and the only difference is whether the parent# class has an `initialize` method## @return [Foo2]deffoonewendendendend
Gives the following error:
% solargraph typecheck --level typed tmp.rb
tmp.rb:17 - Declared returntype MyModule::Foo1 does not match inferred type Foo1 for MyModule::Foo1.foo
1 problem found.
Changing line 17 to @return [MyModule::Foo1] resolves the issue, but it seems like that shouldn't be necessary or it should be required for line 28 (@return [Foo2]) as well.
The text was updated successfully, but these errors were encountered:
The following code:
Gives the following error:
Changing line 17 to
@return [MyModule::Foo1]
resolves the issue, but it seems like that shouldn't be necessary or it should be required for line 28 (@return [Foo2]
) as well.The text was updated successfully, but these errors were encountered: