You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurred while Layout/MultilineMethodCallIndentation cop was inspecting ...
undefined method `dot' for #<Parser::Source::Map::Collection:0x00007fcdc8232448>
Steps to reproduce the problem
AllCops:
TargetRubyVersion: 2.6.2
# frozen_string_literal: true
require 'dry/monads'
class ExceptionalLand
include Dry::Monads[:try]
def call
Try[ZeroDivisionError] { 10 / 0 }
.fmap { |x| x * 3 }
end
end
Rubocop crashes when valid syntax according to https://dry-rb.org/gems/dry-monads/1.0/try/ is spread over two lines
Expected behavior
To generate a rubocop offence
Actual behavior
Steps to reproduce the problem
RuboCop version
The text was updated successfully, but these errors were encountered: