Sha256: f3f94c787f0a39cc765bc3f50d6d3d8b90019799a2363b35a3e4cd2daa075285

Contents?: true

Size: 436 Bytes

Versions: 4

Compression:

Stored size: 436 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
  def foo : (Integer | untyped) -> nil
  def log : (String) -> nil
end

class C
  def foo : -> nil
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typeprof-0.7.0 smoke/constant2.rb
typeprof-0.6.1 smoke/constant2.rb
typeprof-0.6.0 smoke/constant2.rb
typeprof-0.5.4 smoke/constant2.rb