Sha256: 3f21e315ad07196f85c7ae79d2a046c8c9992b9eaf4684a30a9d0c1a8db4bc5d

Contents?: true

Size: 560 Bytes

Versions: 48

Compression:

Stored size: 560 Bytes

Contents

class A
  def foo(x)
    # @type self: A

    # @type var a: Integer
    # !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::Object
    a = super(x)
    # !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::Object
    a = super

    # @type var b: Object
    b = super(x)

    # @type var c: Integer
    c = foo(x)
  end

  def bar()
    # @type self: A

    super()
    super
  end

  def baz
    # @type self: A

    # !expects UnexpectedSuper: method=baz
    super()

    # !expects UnexpectedSuper: method=baz
    super
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
steep-0.7.0 smoke/super/a.rb
steep-0.6.0 smoke/super/a.rb
steep-0.5.1 smoke/super/a.rb
steep-0.5.0 smoke/super/a.rb
steep-0.4.0 smoke/super/a.rb
steep-0.3.0 smoke/super/a.rb
steep-0.2.0 smoke/super/a.rb
steep-0.1.0 smoke/super/a.rb