Sha256: 3f90b4be6d79ed7bddc2df0d18a1b898929ad864e2d7019408d0e485a5483c3f

Contents?: true

Size: 229 Bytes

Versions: 14

Compression:

Stored size: 229 Bytes

Contents

def foo
  cell = Cell.new("str")
  cell.set_elem(42) if rand < 0.5
  cell
end

def bar
  foo.get_elem
end

bar

__END__
# Classes
class Object
  private
  def foo: -> (Cell[Integer | String])
  def bar: -> (Integer | String)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/rbs-tyvar.rb
typeprof-0.15.3 smoke/rbs-tyvar.rb
typeprof-0.15.2 smoke/rbs-tyvar.rb
typeprof-0.15.1 smoke/rbs-tyvar.rb
typeprof-0.15.0 smoke/rbs-tyvar.rb
typeprof-0.14.1 smoke/rbs-tyvar.rb
typeprof-0.14.0 smoke/rbs-tyvar.rb
typeprof-0.13.0 smoke/rbs-tyvar.rb
typeprof-0.12.0 smoke/rbs-tyvar.rb
typeprof-0.11.0 smoke/rbs-tyvar.rb
typeprof-0.10.0 smoke/rbs-tyvar.rb
typeprof-0.9.2 smoke/rbs-tyvar.rb
typeprof-0.9.1 smoke/rbs-tyvar.rb
typeprof-0.9.0 smoke/rbs-tyvar.rb