crystal-ameba / ameba

A static code analysis tool for Crystal
https://crystal-ameba.github.io
MIT License
514 stars 35 forks source link

`Lint/UselessAssign` reports type declarations within `lib` definitions #442

Closed Sija closed 8 months ago

Sija commented 8 months ago

Code below triggers an issue:

lib LibFoo
  struct Foo
    a : Int32
  end
end