Sha256: 40aac5280dd7e60abbba34c7d52238eeb74b9b793cee5e499391cdac395fa312

Contents?: true

Size: 284 Bytes

Versions: 14

Compression:

Stored size: 284 Bytes

Contents

def foo
  yield
end

any = undefined_method
foo(&any)

foo(&1)

__END__
# Errors
smoke/block7.rb:5: [error] undefined method: Object#undefined_method
smoke/block7.rb:8: [error] wrong argument type Integer<1> (expected Proc)

# Classes
class Object
  private
  def foo: -> untyped
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
typeprof-0.20.0 smoke/block7.rb
typeprof-0.15.3 smoke/block7.rb
typeprof-0.15.2 smoke/block7.rb
typeprof-0.15.1 smoke/block7.rb
typeprof-0.15.0 smoke/block7.rb
typeprof-0.14.1 smoke/block7.rb
typeprof-0.14.0 smoke/block7.rb
typeprof-0.13.0 smoke/block7.rb
typeprof-0.12.0 smoke/block7.rb
typeprof-0.11.0 smoke/block7.rb
typeprof-0.10.0 smoke/block7.rb
typeprof-0.9.2 smoke/block7.rb
typeprof-0.9.1 smoke/block7.rb
typeprof-0.9.0 smoke/block7.rb