As in the following code.
class A[T] {
def add(n: Int)(implicit env: T =:= Int = null): Int = n + 1
}
object A extends App {
val a = new A[Int]
a.add(1) // 2
}
I know that T =:= Int means T should be of type Int, but what does = null part mean?
Note: The example is made up by me. It'd be better if you can show me a proper usage of = null if it's not appropriate.