mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Do not report type declarations within generic records
This commit is contained in:
parent
b56d34715d
commit
f2677d68f6
2 changed files with 18 additions and 4 deletions
|
@ -394,6 +394,12 @@ module Ameba::Rule::Lint
|
|||
CRYSTAL
|
||||
end
|
||||
|
||||
it "doesn't report if this is a record declaration (generics)" do
|
||||
expect_no_issues subject, <<-CRYSTAL
|
||||
record Foo(T), foo : T
|
||||
CRYSTAL
|
||||
end
|
||||
|
||||
it "doesn't report if this is an accessor declaration" do
|
||||
accessor_macros = %w[setter class_setter]
|
||||
%w[getter class_getter property class_property].each do |name|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue