karelpeeters
09/11/2017, 3:04 PMtest(InInt(5))
has type Out<Int>
and the only possibility is that it's actually OutInt
, but it's not that advanced.jstuyts-squins
09/12/2017, 7:56 AMOut<Int>
as the return type, the type of the when
statement would be incompatible with the return type. The compiler cannot infer the return type in this case, because the type information of the parameter conflicts with the type information of the returned expressionkarelpeeters
09/12/2017, 7:58 AMOut<Int>
must be OutInt
. I agree that's beyond what we can expect.