Sha256: e682d0b255c0748005ff49e13cba446da3fb91923a33e9ef808a739f7c4f947b

Contents?: true

Size: 447 Bytes

Versions: 11

Compression:

Stored size: 447 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 x) -> nil
  def log: (String x) -> nil
end

class C
  def foo: -> nil
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/constant2.rb
typeprof-0.15.3 smoke/constant2.rb
typeprof-0.15.2 smoke/constant2.rb
typeprof-0.15.1 smoke/constant2.rb
typeprof-0.15.0 smoke/constant2.rb
typeprof-0.14.1 smoke/constant2.rb
typeprof-0.14.0 smoke/constant2.rb
typeprof-0.13.0 smoke/constant2.rb
typeprof-0.12.0 smoke/constant2.rb
typeprof-0.11.0 smoke/constant2.rb
typeprof-0.10.0 smoke/constant2.rb