Sha256: 9e7e2bfe02a33b9b30942fdf843c9d3c96788804d72c744be3f17c507ceb71b3
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
--- test: a.rb: diagnostics: - | a.rb:6:4: [error] Cannot assign a value of type `::Integer` to a variable of type `::String` │ ::Integer <: ::String │ ::Numeric <: ::String │ ::Object <: ::String │ ::BasicObject <: ::String │ │ Diagnostic ID: Ruby::IncompatibleAssignment │ └ x = yield(3) ~~~~~~~~~~~~ - | a.rb:8:10: [error] Cannot assign a value of type `::String` to an expression of type `::Integer` │ ::String <: ::Integer │ ::Object <: ::Integer │ ::BasicObject <: ::Integer │ │ Diagnostic ID: Ruby::IncompatibleAssignment │ └ yield(x) ~ - | a.rb:13:4: [error] No block given for `yield` │ Diagnostic ID: Ruby::UnexpectedYield │ └ yield 4 ~~~~~~~ - | a.rb:13:4: [error] Cannot detect the type of the expression │ Diagnostic ID: Ruby::FallbackAny │ └ yield 4 ~~~~~~~ b.rb: diagnostics: - | b.rb:4:10: [error] Cannot assign a value of type `::String` to an expression of type `::Integer` │ ::String <: ::Integer │ ::Object <: ::Integer │ ::BasicObject <: ::Integer │ │ Diagnostic ID: Ruby::IncompatibleAssignment │ └ yield "" ~~
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
steep-0.40.0 | smoke/yield/test.yaml |