Sha256: 3f46610b725a521ca9f0dcbec5150430119b5b152b05a17cadcb951589984d26

Contents?: true

Size: 425 Bytes

Versions: 12

Compression:

Stored size: 425 Bytes

Contents

# @type var a: ^(Integer) -> String
a = -> (x) { x.to_s }

# @type var b: Array<Float>

# !expects IncompatibleAssignment: lhs_type=::Array<::Float>, rhs_type=::Array<::String>
b = [1,2,3].map(&a)

# !expects IncompatibleAssignment: lhs_type=::Array<::Float>, rhs_type=::Array<::String>
b = [1,2,3].map(&:to_s)

# !expects* BlockTypeMismatch:
[1,2,3].map(&:no_such_method)
# !expects* BlockTypeMismatch:
[1,2,3].map(&:floor)

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
steep-0.11.1 smoke/block/d.rb
steep-0.11.0 smoke/block/d.rb
steep-0.10.0 smoke/block/d.rb
steep-0.9.0 smoke/block/d.rb
steep-0.8.2 smoke/block/d.rb
steep-0.8.1 smoke/block/d.rb
steep-0.8.0 smoke/block/d.rb
steep-0.7.1 smoke/block/d.rb
steep-0.7.0 smoke/block/d.rb
steep-0.6.0 smoke/block/d.rb
steep-0.5.1 smoke/block/d.rb
steep-0.5.0 smoke/block/d.rb