Sha256: 2403ffc0d352d45766de3af1a9135f16b9cc8b3438fbc5b570bdcd5dabce5a61

Contents?: true

Size: 363 Bytes

Versions: 18

Compression:

Stored size: 363 Bytes

Contents

class Foo
  def foo=(x)
    @foo = x
  end

  def foo
    @foo
  end
end

def log(x)
end

Foo.new.foo = 1
log(Foo.new.foo)
Foo.new.foo = "str"
log(Foo.new.foo)

__END__
# Classes
class Object
  def log : (Integer | String) -> nil
end

class Foo
  @foo : Integer | String
  def foo= : (Integer | String) -> (Integer | String)
  def foo : -> (Integer | String)
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/ivar.rb
typeprof-0.6.1 smoke/ivar.rb
typeprof-0.6.0 smoke/ivar.rb
typeprof-0.5.4 smoke/ivar.rb
typeprof-0.5.3 smoke/ivar.rb
typeprof-0.5.2 smoke/ivar.rb
typeprof-0.5.1 smoke/ivar.rb
typeprof-0.5.0 smoke/ivar.rb
typeprof-0.4.2 smoke/ivar.rb
typeprof-0.4.1 smoke/ivar.rb
typeprof-0.4.0 smoke/ivar.rb
typeprof-0.3.0 smoke/ivar.rb
typeprof-0.2.0 smoke/ivar.rb
typeprof-0.1.4 smoke/ivar.rb
typeprof-0.1.3 smoke/ivar.rb
typeprof-0.1.2 smoke/ivar.rb
typeprof-0.1.1 smoke/ivar.rb
typeprof-0.1.0 smoke/ivar.rb