Sha256: 32df8a461b681774539eba15896359203c0a83b247d43ca832823f967f70b06a

Contents?: true

Size: 752 Bytes

Versions: 1

Compression:

Stored size: 752 Bytes

Contents

---
test:
  a.rb:
    diagnostics:
    - |
      a.rb:6:0: [error] Cannot assign a value of type `(::String | nil)` to a variable of type `::String`
      │   (::String | nil) <: ::String
      │     nil <: ::String
      │
      │ Diagnostic ID: Ruby::IncompatibleAssignment
      │
      └ b = a && a.to_str
        ~~~~~~~~~~~~~~~~~
    - |
      a.rb:8:0: [error] Cannot assign a value of type `(::String | nil)` to a variable of type `::Integer`
      │   (::String | nil) <: ::Integer
      │     ::String <: ::Integer
      │       ::Object <: ::Integer
      │         ::BasicObject <: ::Integer
      │
      │ Diagnostic ID: Ruby::IncompatibleAssignment
      │
      └ c = a && a.to_str
        ~~~~~~~~~~~~~~~~~

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
steep-0.40.0 smoke/and/test.yaml