Sha256: af104986bf6c2b1514e53ec87d5874aa95e8d1a865527406d1950409e8c2d8c9

Contents?: true

Size: 950 Bytes

Versions: 1

Compression:

Stored size: 950 Bytes

Contents

---
test:
  a.rb:
    diagnostics:
    - |
      a.rb:7:4: [error] Type `(::Integer | ::String)` does not have method `foobar`
      │ Diagnostic ID: Ruby::NoMethod
      │
      └   x.foobar()
            ~~~~~~
    - |
      a.rb:12:4: [error] Type `(::Integer | ::String | ::Symbol)` does not have method `foobar`
      │ Diagnostic ID: Ruby::NoMethod
      │
      └   x.foobar
            ~~~~~~
    - |
      a.rb:17:4: [error] Type `1` does not have method `foobar`
      │ Diagnostic ID: Ruby::NoMethod
      │
      └   x.foobar
            ~~~~~~
    - |
      a.rb:23:2: [error] Type annotation about `x` is incompatible since ::Integer <: ::String doesn't hold
      │   ::Integer <: ::String
      │     ::Numeric <: ::String
      │       ::Object <: ::String
      │         ::BasicObject <: ::String
      │
      │ Diagnostic ID: Ruby::IncompatibleAnnotation
      │
      └   x + 1
          ~~~~~

Version data entries

1 entries across 1 versions & 1 rubygems

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