Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

UnextendedSealedTrait raised when full name of base class is used #62

Open
thesamet opened this issue May 1, 2018 · 0 comments
Open

Comments

@thesamet
Copy link

thesamet commented May 1, 2018

Linting the following code:

package pkg

sealed trait Base

case object Sub extends pkg.Base

would incorrectly yield:

[warn] /tmp/linter/src/main/scala/Test.scala:3: [UnextendedSealedTrait] This sealed trait is never extended
[warn] sealed trait Base
[warn]              ^
[warn] one warning found

Changing extends pkg.Base to extends Base would fix the lint error. Using the full name is sometimes necessary to prevent ambiguity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant