--- test: a.rb: diagnostics: - | a.rb:1:0: [error] Cannot allow method body have type `nil` because declared as type `::String` │ nil <: ::String │ │ Diagnostic ID: Ruby::MethodBodyTypeMismatch │ └ def fizz_buzz(n) ~~~~~~~~~~~~~~~~