It’s easy to break some code with type inference. ...
# announcements
m
It’s easy to break some code with type inference. If you change `NORMAL_CLOSURE`‘s type to
BigInteger
, and then to
BigDecimal
, in different versions of library, you will get different (and binary incompatible) signatures and expose some implementation details. In case I described,
fun disconnect(code: Number = NORMAL_CLOSURE)
is preferred.