Sha256: fe1f683715d120e494dd39da993ab82994d3a3d96ae8fe4f1d1b3bb283079210

Contents?: true

Size: 442 Bytes

Versions: 3

Compression:

Stored size: 442 Bytes

Contents

def foo(x)
end

foo(UNDEFINED_CONSTANT)
foo(1)

C = "dummy"
class C
  def foo
  end
  self.new.foo
end

BAR = 1
BAR = "str"
def log(x)
end
log(BAR)

__END__
# Errors
smoke/constant2.rb:8: [error] the class "C" is String
smoke/constant2.rb:15: [warning] already initialized constant Object::BAR

# Classes
class Object
  BAR: String
  private
  def foo: (Integer | untyped) -> nil
  def log: (String) -> nil
end

class C
  def foo: -> nil
end

Version data entries

3 entries across 3 versions & 1 rubygems

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