Sha256: 196a9b056fc5d5cd2018301a6cf50584ffaf0a589220ac00e18d8de5c482f826

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

---
test:
  a.rb:
    diagnostics:
    - |
      a.rb:7:6: [error] Cannot assign a value of type `::Symbol` to a variable of type `::Integer`
      │   ::Symbol <: ::Integer
      │     ::Object <: ::Integer
      │       ::BasicObject <: ::Integer
      │
      │ Diagnostic ID: Ruby::IncompatibleAssignment
      │
      └       b = :foo
              ~~~~~~~~
    - |
      a.rb:4:0: [error] Cannot assign a value of type `::String` to a variable of type `::Integer`
      │   ::String <: ::Integer
      │     ::Object <: ::Integer
      │       ::BasicObject <: ::Integer
      │
      │ Diagnostic ID: Ruby::IncompatibleAssignment
      │
      └ a = begin
        ~~~~~~~~~
    - |
      a.rb:16:2: [error] Cannot find compatible overloading of method `+` of type `::Integer`
      │ Method types:
      │   def +: (::Integer) -> ::Integer
      │        | (::Float) -> ::Float
      │        | (::Rational) -> ::Rational
      │        | (::Complex) -> ::Complex
      │
      │ Diagnostic ID: Ruby::UnresolvedOverloading
      │
      └   1 + '1'
          ~~~~~~~
    - |
      a.rb:13:0: [error] Cannot allow method body have type `::Integer` because declared as type `::String`
      │   ::Integer <: ::String
      │     ::Numeric <: ::String
      │       ::Object <: ::String
      │         ::BasicObject <: ::String
      │
      │ Diagnostic ID: Ruby::MethodBodyTypeMismatch
      │
      └ def foo(a)
        ~~~~~~~~~~

Version data entries

1 entries across 1 versions & 1 rubygems

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