Closed LeandroRezendeCoutinho closed 3 years ago
Thank you for trying TypeProf!
Your code assigns a Service instance to a local variable.
def initialize
service = Service.new
end
I believe you wanted to assign it to an instance variable like this.
def initialize
@service = Service.new
end
By tweaking the code, TypeProf shows def delegate_sum : (Float, Integer) -> (Float | Integer)
as you expect.
Thanks!
I always get confused with attrs... kkkk Nice work!
Issue
If i use
result is
On a diferente approach do not recognize output. "if it is not a bug, sorry"
ruby
output