Sha256: 0b48eb5a0dd91708ab8475722818503230ebf39f12e2e7da7fa3679d9735163c

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 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=_Boolean
x = true
# !expects IncompatibleAssignment: lhs_type=::Integer, rhs_type=_Boolean
y = false

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
steep-0.3.0 smoke/literal/a.rb
steep-0.2.0 smoke/literal/a.rb
steep-0.1.0 smoke/literal/a.rb