ruby/syntax_suggest

Investigate output

Closed this issue · 1 comments

module Hey
  class Foo
    def initialize
      [1,2,3
    end
    def heyfoo
    end
  end
end

I think we can close this one:

$ dead_end scratch.rb

DeadEnd: Unmatched `]` detected

file: /private/tmp/scratch.rb
simplified:

      1  module Hey
      2    class Foo
      3      def initialize
    ❯ 4        [1,2,3
      5      end
      8    end
      9  end