https://kotlinlang.org logo
o

orangy

10/22/2015, 12:46 PM
E.g.
String
satisfies
T:Any?
constraint, and if you have function like:
Copy code
fun getItem() :T = someItem // error here, but what if there is no error?
Then using
ProblemClass<String>().getItem()
would throw exception, because String cannot be null