sxtanna
06/04/2019, 2:09 AMsxtanna
06/04/2019, 2:18 AMstreetsofboston
06/04/2019, 2:28 AMsxtanna
06/04/2019, 3:18 AMsxtanna
06/04/2019, 3:18 AMstreetsofboston
06/04/2019, 3:46 AM!is
does not work in a(n exhaustive) when
either.
I guess that the pattern matching on the when
doesn’t work with !is
, maybe because it is in general too hard to find the commonalities between possibly more than one sub-types of a sealed class.
I can imagine that the language doesn’t make an exceptions even if the !is
results in only one sub-typesxtanna
06/04/2019, 4:43 AMStephan Schroeder
06/04/2019, 9:20 AM!is
catches more than intended.