toxara
10/15/2018, 7:34 AMhandleBox
typecheck without unsafe casting?Leonid Popescu
10/15/2018, 7:42 AMabstract val value
in the first place ?Leonid Popescu
10/15/2018, 7:43 AMkarelpeeters
10/15/2018, 7:46 AMbox
smartcasted to IntBox
?Andreas Sinz
10/15/2018, 7:50 AMT
has the same type as box.value
karelpeeters
10/15/2018, 7:51 AMval box: Box = ...
if (box is IntBox)
println(box.value * 2)
also not work?Andreas Sinz
10/15/2018, 7:54 AMwhen(box) { .. }
has the return type Any
instead of T
karelpeeters
10/15/2018, 7:55 AMAndreas Sinz
10/15/2018, 7:59 AMInt & String
, maybe we get sum types Int | T
with 1.4? 🧌karelpeeters
10/15/2018, 8:02 AMkarelpeeters
10/15/2018, 8:02 AMAndreas Sinz
10/15/2018, 8:49 AM