Sha256: a9f4d39ea4aa1d5df893f5952f6a19054e5044d175f71cf8dc1e9bbc5904bfbb

Contents?: true

Size: 268 Bytes

Versions: 12

Compression:

Stored size: 268 Bytes

Contents

# @type var a: Integer

# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::String
a = -> (x, y) do
  # @type var x: String
  # @type var y: String
  x + y
end["foo", "bar"]

# !expects NoMethodError: type=::Object, method=lambda
b = lambda {|x| x + 1 }

Version data entries

12 entries across 12 versions & 1 rubygems

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