iex
06/25/2020, 11:02 AMSmart cast to 'UserInput.Some' is impossible, because 'alert.earliestSymptomTime' is a public API property declared in different modulecode:
when (alert.earliestSymptomTime) {
is UserInput.Some -> alert.earliestSymptomTime.value.value
is UserInput.None -> null
}
Why does it happen? Seems weird. And is there a way to fix it without having to cast? I didn't expect that modularizing my app would lead to a decline in code quality 😕Javier
06/25/2020, 11:20 AMwhen (val earliestSymptomTime = alert.earliestSymptomTime) {
is UserInput.Some -> earliestSymptomTime.value.value
is UserInput.None -> null
}
Javier
06/25/2020, 11:20 AMiex
06/25/2020, 11:29 AMKroppeb
06/25/2020, 1:28 PMRuckus
06/25/2020, 4:01 PMUserInput
type and compile the domain logic module. Now if you run, you're already compiled when
is no longer exhausted.Javier
06/25/2020, 4:15 PMKroppeb
06/25/2020, 4:21 PMearliestSymptomTime
could return different values in the when argument and in the when caseRuckus
06/25/2020, 4:24 PM