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

Unused method parameter false positive on usage of types defined in parameter #43

Open
HairyFotr opened this issue Jul 18, 2016 · 1 comment

Comments

@HairyFotr
Copy link
Owner

Reported by @harshad-deo on gitter:
Unused method parameter check does not consider usage of types defined in the parameter

specifically, this throws a warning:

def buildT = new Witness[EmptyDenseSet#Include[f.ValueHash]]
def build[T](f: LiteralHash[T]) = new Witness[EmptyDenseSet#Include[f.ValueHash]]
@pjrt
Copy link

pjrt commented Jan 26, 2017

Here's another case:

    def optClass(
        optFactory: OptFactory
      )(implicit tag: ClassTag[optFactory.SomeType]
      ): Class[_] = tag.runtimeClass

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

No branches or pull requests

2 participants