Sha256: a99d041bde1699289c24f91432cedca2a4d876c5141d1145dca7762e7b294018

Contents?: true

Size: 448 Bytes

Versions: 45

Compression:

Stored size: 448 Bytes

Contents

# @type var x: String
# @type var y: Integer

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Integer
x = 1

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=::Symbol
x = :foo

# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=::String
y = "foo"

# !expects IncompatibleAssignment: lhs_type=::String, rhs_type=bool
x = true
# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=bool
y = false

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
steep-0.7.0 smoke/literal/a.rb
steep-0.6.0 smoke/literal/a.rb
steep-0.5.1 smoke/literal/a.rb
steep-0.5.0 smoke/literal/a.rb
steep-0.4.0 smoke/literal/a.rb