Sha256: 91fd295be8e31fadedd9a6175edbf98ee3832cb333f4baefa9ee0560fd22b1a5

Contents?: true

Size: 304 Bytes

Versions: 16

Compression:

Stored size: 304 Bytes

Contents

module A
  # @implements A

  def count
    if block_given?
      n = 0

      each do |_|
        n = n + 1
      end

      n
    else
      0
    end
  end

  # ok
  block_given?

  # !expects NoMethodError: type=(::A.module & ::Module), method=no_such_method_in_module
  no_such_method_in_module
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
steep-0.11.1 smoke/module/c.rb
steep-0.11.0 smoke/module/c.rb
steep-0.10.0 smoke/module/c.rb
steep-0.9.0 smoke/module/c.rb
steep-0.8.2 smoke/module/c.rb
steep-0.8.1 smoke/module/c.rb
steep-0.8.0 smoke/module/c.rb
steep-0.7.1 smoke/module/c.rb
steep-0.7.0 smoke/module/c.rb
steep-0.6.0 smoke/module/c.rb
steep-0.5.1 smoke/module/c.rb
steep-0.5.0 smoke/module/c.rb
steep-0.4.0 smoke/module/c.rb
steep-0.3.0 smoke/module/c.rb
steep-0.2.0 smoke/module/c.rb
steep-0.1.0 smoke/module/c.rb