Skip to content

Instantly share code, notes, and snippets.

@afsalthaj
Created October 24, 2019 10:50
Show Gist options
  • Save afsalthaj/7f4c5bf525af0dba5d64fb73e6882b4c to your computer and use it in GitHub Desktop.
Save afsalthaj/7f4c5bf525af0dba5d64fb73e6882b4c to your computer and use it in GitHub Desktop.
trait =!=[C, D]
object NoFeatureS {
implicit def neq[E, F]: E =!= F = new =!=[E, F] {}
@annotation.implicitAmbiguous("Could not prove ${J} =!= ${J}")
implicit def neqAmbig1[G, H, J]: J =!= J = new =!=[J, J] {}
implicit def neqAmbig2[I]: I =!= I = new =!=[I, I] {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment