Sha256: 78bcb206012c0456552f72e4428950f51438282381152077327963e2a3e7d31e

Contents?: true

Size: 429 Bytes

Versions: 11

Compression:

Stored size: 429 Bytes

Contents

module Mod
  def foo
    [42, super(:sym)]
  end
end

class Foo
  prepend Mod

  def foo(sym_arg)
    sym_arg.to_s
  end

  def bar
    foo
  end
end

__END__
# Errors
smoke/prepend1.rb:3: [error] no superclass method: Mod#foo

# Classes
module Mod
  def foo: -> ([Integer, String | untyped])
end

class Foo
  prepend Mod

  def foo: (:sym | untyped sym_arg) -> (String | untyped)
  def bar: -> ([Integer, String | untyped])
end

Version data entries

11 entries across 11 versions & 1 rubygems

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