diesieben07
05/25/2018, 3:17 PMorangy
in resolves to different contains with smart cast and withoutjlleitschuh
05/25/2018, 3:20 PMthing you are getting two different values.
if (thing != null // This could evaluate to `true`
&&
thing in list // `thing` can be null here.
) { // fails
}
@orangyorangy
jlleitschuh
05/25/2018, 3:21 PMorangy
var, because it can be modified on a different threaddiesieben07
05/25/2018, 3:23 PMdiesieben07
05/25/2018, 3:23 PMdiesieben07
05/25/2018, 3:28 PM