nachocab
nachocab

Reputation: 14364

How to fix a type mismatch between Manifest and ManifestFactory in Scala?

I'm debugging code similar to this (scala 2.11.8):

class Whatever extends Serializable {
  def getParams[T: Manifest]() = doSomething()
}

When I try to add a watch variable with doSomething() in IntelliJ, I get this error:

Error evaluating method : 'doSomething': Type mismatch Can't assign scala.reflect.ManifestFactory$ to scala.reflect.Manifest

Any idea on how to fix it?

Upvotes: 0

Views: 99

Answers (0)

Related Questions