Skip to content

Instantly share code, notes, and snippets.

@aakashns
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save aakashns/ee49091b62853114fb04 to your computer and use it in GitHub Desktop.

Select an option

Save aakashns/ee49091b62853114fb04 to your computer and use it in GitHub Desktop.
Group type class with implicit annotation
error: could not find implicit value for evidence parameter of type Group[Boolean]
error: No member of type class Group found for type Boolean
import annotation.implicitNotFound
@implicitNotFound("No member of type class Group found for type ${T}")
trait Group[T] {
// code ..
}
sum(Seq(true, false))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment