Sha256: f747b7156c14e898ddccf6478be11aa89d83e897c7f5c09bf81677d51257bf7a

Contents?: true

Size: 428 Bytes

Versions: 7

Compression:

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

class C(dummy)
  def foo : -> nil
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typeprof-0.3.0 smoke/constant2.rb
typeprof-0.2.0 smoke/constant2.rb
typeprof-0.1.4 smoke/constant2.rb
typeprof-0.1.3 smoke/constant2.rb
typeprof-0.1.2 smoke/constant2.rb
typeprof-0.1.1 smoke/constant2.rb
typeprof-0.1.0 smoke/constant2.rb