is there any difference between `fun <B> B?....
# announcements
p
is there any difference between
fun <B> B?.bla() = 1
and
fun <B: Any?> B.bla() = 1
n
none i can think of but that raises a question why would you allow an extension function on a nullable type? if you allow it, the developer may or may not check for nullability and in the latter case, raise a NPE if you add the extension function on a non-nullable type you force him to handle it anyway
r
there might be some difference related to * type projections and Nothing ... but I'm not sure
p
n
got it 🙂