rafal
06/16/2016, 1:48 PMobject
, a totally new instance is created. This produces NoWhenBranchMatchedException
when comparing with and old instance of object
. See provided code for an example.
Maybe IDE should warn developer that using when branch without is
might be dangerous?