Sha256: a38aa260accdefa84b9e33b153fde2b6ce6daab7c1648b4b1ae5bd1ef75ca2d3

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

def foo(x)
  "s" + case x
  when Integer
    x.to_s
  when String
    x
  else
    raise
  end
end

foo(1)
foo("1")

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typeprof-0.9.2 smoke/flow6.rb
typeprof-0.9.1 smoke/flow6.rb
typeprof-0.9.0 smoke/flow6.rb