Steps to reproduce the problem
Style/HashAsLastArrayItem:
EnforcedStyle: braces
and code
# frozen_string_literal: true
class Foo
A = [
a: 1
].freeze
end
Expected behavior
The hash should be marked as invalid since it should be [{a:1}]
Actual behavior
not marked
RuboCop version
1.84.1