Skip to content

Analyzer for dancing-dots doesn't consider using alias in @impl #351

@pichi

Description

@pichi

Implementations like this

defmodule DancingDots.Flicker do
  alias DancingDots.Dot
  alias DancingDots.Animation
  use Animation

  @impl Animation
  def handle_frame(%Dot{} = dot, frame_number, opts) do
  end
end

ends with recommendation:

Don't forget to annotate all the callback implementations with @impl DancingDots.Animation.

But the compiler seems happy with it. I don't see in the documentation if aliases are allowed in @impl attribute and I'm not sure how to test it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions